Skip to content

Commit 0613bf6

Browse files
committed
Adding changes for personal access token to access token
1 parent 7449ccd commit 0613bf6

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,20 +95,13 @@ Resources this API supports:
9595

9696
## Authorization
9797

98-
99-
If you're using a Personal Access Token (PAT) you can just use the following helper method, which will automatically set up the authentication scheme for you -
98+
> 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).
10099
101100
```java
101+
# With an OAuth or Access token:
102102
Intercom.setToken("da39a3ee5e6b4b0d3255bfef95601890afd80709");
103103
```
104-
105-
If you're still using API Keys (now deprecated), you can set up your App ID and API Key using the following methods -
106-
107-
```java
108-
Intercom.setAppID("pi3243fa");
109-
Intercom.setApiKey("da39a3ee5e6b4b0d3255bfef95601890afd80709");
110-
```
111-
> 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
104+
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.
112105

113106

114107
## Usage

0 commit comments

Comments
 (0)