Skip to content

Commit aa4383c

Browse files
authored
Merge pull request #33 from OneSignal/player-api-updates
docs: update auth key references to match public docs
2 parents f1afa7e + 0369b3b commit aa4383c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ use GuzzleHttp;
5252
### Constants
5353
```php
5454
const APP_ID = '<YOUR_APP_ID>';
55-
const APP_KEY_TOKEN = '<YOUR_APP_KEY_TOKEN>';
56-
const USER_KEY_TOKEN = '<YOUR_USER_KEY_TOKEN>';
55+
const REST_KEY_TOKEN = '<YOUR_REST_API_KEY>'; // App REST API key required for most endpoints
56+
const ORG_KEY_TOKEN = '<YOUR_ORGANIZATION_API_KEY>'; // Organization key is only required for creating new apps and other top-level endpoints
5757
```
5858

5959
### Configure authorization
6060
```php
6161
$config = Configuration::getDefaultConfiguration()
62-
->setAppKeyToken(APP_KEY_TOKEN)
63-
->setUserKeyToken(USER_KEY_TOKEN);
62+
->setAppKeyToken(REST_KEY_TOKEN)
63+
->setUserKeyToken(ORG_KEY_TOKEN);
6464

6565
$apiInstance = new DefaultApi(
6666
new GuzzleHttp\Client(),

0 commit comments

Comments
 (0)