@@ -82,6 +82,9 @@ https://api.intercom.io/jobs
8282https://api.intercom.io/articles
8383https://api.intercom.io/help_center/collections
8484https://api.intercom.io/help_center/sections
85+ https://api.intercom.io/phone_call_redirects
86+ https://api.intercom.io/subscription_types
87+ https://api.intercom.io/export/content/data
8588```
8689
8790### Examples
@@ -115,7 +118,7 @@ intercom.contacts.unarchive(contact)
115118intercom.contacts.delete(contact)
116119
117120# Deletes an archived contact permanently
118- contact. delete_archived_contact(" 124 " )
121+ intercom.contacts. delete_archived_contact(contact.id )
119122
120123# List all contacts
121124contacts = intercom.contacts.all
@@ -167,13 +170,13 @@ contact.remove_company(id: company.id)
167170contact.companies.each {|c | p c.name}
168171
169172# attach a subscription_types on a contact
170- contact.create_subscription_types(id: ' 1 ' )
173+ contact.create_subscription_types(id: subscription_type.id )
171174
172175# List subscription_types for a contact
173- contact.subscription_types.each {|n | p n.body }
176+ contact.subscription_types.each {|n | p n.id }
174177
175178# Remove subscription_types
176- contact.remove_subscription_type({ " id" : subscription .id })
179+ contact.remove_subscription_type({ " id" : subscription_type .id })
177180
178181```
179182
@@ -609,7 +612,7 @@ intercom.subscriptions.all
609612
610613#### Subscription Types
611614
612- Subscribe to events in Intercom to receive webhooks.
615+ List all the subscription types that a contact can opt in to
613616
614617``` ruby
615618
@@ -731,14 +734,14 @@ redirect = intercom.phone_call_redirect.create(phone_number: "+353871234567")
731734
732735``` ruby
733736# Create a data export
734- export = intercom.data_content_export .create(created_at_after: 1667566801 , created_at_before: 1668085202 )
737+ export = intercom.export_content .create(created_at_after: 1667566801 , created_at_before: 1668085202 )
735738
736739
737740# View a data export
738- export = intercom.data_content_export .find(id: ' k0e27ohsyvh8ef3m' )
741+ export = intercom.export_content .find(id: ' k0e27ohsyvh8ef3m' )
739742
740743# Cancel a data export
741- export = intercom.data_content_export .cancel(' k0e27ohsyvh8ef3m' )
744+ export = intercom.export_content .cancel(' k0e27ohsyvh8ef3m' )
742745
743746```
744747
0 commit comments