Skip to content

Commit 702df7a

Browse files
authored
Merge pull request #194 from intercom/PAT
Changing names to access tokens and removing API key reference
2 parents 86d7489 + 20e9366 commit 702df7a

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

README.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,16 @@ require "vendor/autoload.php";
3232
```
3333

3434
## Clients
35-
36-
```php
37-
use Intercom\IntercomClient;
38-
39-
$client = new IntercomClient(appId, apiKey);
40-
```
41-
> Warning: API Keys are being deprecated - you should use a [personal access token](https://app.intercom.io/a/apps/_/settings/personal-access-token) instead. [Learn more](https://developers.intercom.io/docs/personal-access-tokens) about API Keys deprecation
42-
43-
Or if using an OAuth or Personal Access Token use:
35+
For OAuth or Access Tokens use:
4436

4537
```php
4638
use Intercom\IntercomClient;
4739

4840
$client = new IntercomClient(<insert_token_here>, null);
4941
```
42+
> If you already have an access token you can find it [here](https://app.intercom.com/developers/_). If you want to create or learn more about access tokens then you can find more info [here](https://developers.intercom.io/docs/personal-access-tokens).
43+
44+
If you are building a third party application you can get your OAuth token by [setting-up-oauth](https://developers.intercom.io/page/setting-up-oauth) for Intercom.
5045

5146
## Users
5247

0 commit comments

Comments
 (0)