Releases: intercom/intercom-php
HTTP: Add support for PSR17/PSR18
What's Changed
- HTTP: add support for PSR17/PSR18 and drop usage of deprecated client discovery by @glaubinix in #363
New Contributors
- @glaubinix made their first contribution in #363
Fixes and Improvements
Fix bug in nextSearchPage
Fixed a bug in nextSearchPage
. This method was wrongfully processing the response twice, which could lead to exceptions depending on the PHP configuration.
Fix bug in contact update method
The previous release introduced support for the Contacts API. However, the contact update method wasn't working because it was missing the contact id in the URL. This release fixes the $client->contacts->update
method.
Add support for API 2.0
This release includes the following:
- API 2.0 support: Contact resource and Conversation Search.
- Updates to the readme to specify which resources are available in which versions.
Add support for Teams
This release adds support for Teams:
- List all teams with
$intercomClient->teams->getTeams()
- Get a single team with
$intercomClient->teams->getTeam($id)
Add support for listing users of a company
This release adds support for listing users of a company via $intercomClient->companies->getCompanyUsers($id)
Remove unnecessary files from release
This release reduces the size of the sdk by excluding unnecessary files from the package (tests, test configurations, CI configuration, etc).
Enable autowiring for Symfony via type hinting
This is a minor patch that adds type hinting to constructors and some other methods for enhanced security and enhanced compatibility with the Symfony4 autowiring features. See #282 for more details.
None of the methods where type hinting was added would have worked if the incorrect types were passed through, so this change is fully backwards compatible.
Add customer search endpoint
This release enables the usage of the new customer search endpoint.
At the moment of writing, this is only available in the Unstable version. Please see the API Changelog and the notes about API Versions for intercom-php.