You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This factory needs to implement `Http\Message\RequestFactory`
58
+
59
+
```php
60
+
$client->setRequestFactory($yourRequestFactory);
61
+
```
62
+
63
+
### Use a custom URI factory
64
+
65
+
This factory needs to implement `Http\Message\UriFactory`
66
+
67
+
```php
68
+
$client->setUriFactory($yourUriFactory);
43
69
```
70
+
44
71
## API Versions
45
72
46
73
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
74
48
75
```php
49
-
$client = new IntercomClient('<insert_token_here>', null, ['Intercom-Version' => '1.1']);
76
+
$client = new IntercomClient(
77
+
'<insert_token_here>',
78
+
null,
79
+
['Intercom-Version' => '1.1']
80
+
);
50
81
```
51
82
52
83
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).
0 commit comments