Skip to content

Commit ed2f7de

Browse files
author
Ed Fricker
committed
Ed: improving README readability
1 parent ba3326d commit ed2f7de

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,22 @@ Resources this API supports:
9595

9696
## Authorization
9797

98-
You can set the app's id and api key via the `Intercom` object -
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 -
99100

100101
```java
101-
Intercom.setAppID("pi3243fa");
102-
Intercom.setApiKey("da39a3ee5e6b4b0d3255bfef95601890afd80709");
102+
Intercom.setPersonalAccessToken("da39a3ee5e6b4b0d3255bfef95601890afd80709");
103103
```
104104

105-
If you're using a Personal Access Token (PAT) you can just use the following helper method -
106-
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+
107107
```java
108-
Intercom.setPersonalAccessToken("da39a3ee5e6b4b0d3255bfef95601890afd80709");
108+
Intercom.setAppID("pi3243fa");
109+
Intercom.setApiKey("da39a3ee5e6b4b0d3255bfef95601890afd80709");
109110
```
110111

112+
113+
111114
## Usage
112115

113116
### Users

0 commit comments

Comments
 (0)