Releases: intercom/intercom-ruby
Added error handling for CDA limit reached
CDA limit errors can now be rescued from and identified easily.
Adding hard delete option
Providing the ability to hard delete users as described here:
https://developers.intercom.com/intercom-api-reference/reference#archive-a-user
This chaged the previous delete action to an archive action and added a new hard delete option
You can still use the delete method but it will archive a user, we added an alias for delete.
#442 archiving alias
#410 add ability to hard delete users
Alos enabling reply to last from the SDK
#443 Residently conversations last reply
Add snooze feature for conversations
You can now snooze a conversation via
Snooze
intercom.conversations.snooze(id: conversation.id, admin_id: '123', snoozed_until: 9999999999)
Allow all conversations to be listed #430
It is now possible to list all conversation for your app
Iterate over all conversations for your app
intercom.conversations.all.each { |convo| ... }
Breaking change: Find companies
BREAKING CHANGE companies
We updated companies to be able to list users via company_id as well as id (#428 )
Note that this is a breaking change as we had to remove the old way of listing users via company.
Previously it was:
intercom.companies.users(company.id)
Now you get a list of users in a company by Intercom Company ID
intercom.companies.users_by_intercom_company_id(company.id)
Now you get a list of users in a company by external company_id
intercom.companies.users_by_company_id(company.company_id)
Rate limit handling
We also improved the way we handle rate limits in PR #409 which was related to issue #405
Adding network timeout customisation capabilities
- Network timeouts can now be customised, with defaults to 90 and 30
#412
Fix for rate limit out of range error
update error handling for suspended apps
Related to #395
Add ResourceNotUniqueError
Related #372:
- New type of error (ResourceNotUniqueError). Thrown when trying to create a resource that already exists in Intercom
Return object type
Return object type in API response objects, e.g.
> conversation = intercom.conversations.find(:id => '6724844006')
> conversation.conversation_message.author.type
"user"