Skip to content

Commit 5fd9774

Browse files
authored
Add versioning information to README (#275)
1 parent 46b5e01 commit 5fd9774

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ $client->setHttpClient($myCustomHttpClient); // $myCustomHttpClient implements P
4141
$client->setRequestFactory($myCustomRequestFactory); // $myCustomRequestFactory implements Http\Message\RequestFactory
4242
$client->setUriFactory($myCustomUriFactory); // $myCustomUriFactory implements Http\Message\UriFactory
4343
```
44+
## API Versions
45+
46+
This library is intended to work with any API Version. By default, the version that you have configured for your App in the [Developer Hub](https://developers.intercom.com/) will be used. However, you can overwrite that version for a single request or for all the requests using this library by including the `Intercom-Version` header when initializing the client as follows:
47+
48+
```php
49+
$client = new IntercomClient('<insert_token_here>', null, ['Intercom-Version' => '1.1']);
50+
```
51+
52+
For more information about API Versioning, please check the [API Versioning Documentation](https://developers.intercom.com/building-apps/docs/api-versioning) and the [API changelog](https://developers.intercom.com/building-apps/docs/api-changelog).
4453

4554
## Users
4655

0 commit comments

Comments
 (0)