Skip to content

Commit adba4b2

Browse files
committed
Merge pull request #20 from OneSignal/api
docs: update auth key references to match public docs
2 parents 82bdc3f + 1576cd7 commit adba4b2

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
@@ -93,14 +93,14 @@ using utility::string_t;
9393
using utility::conversions::to_string_t;
9494

9595
const std::string APP_ID = "<YOUR_APP_ID>";
96-
const std::string APP_KEY_TOKEN = "<YOUR_APP_KEY_TOKEN>";
97-
const std::string USER_KEY_TOKEN = "<YOUR_USER_KEY_TOKEN>";
96+
const std::string REST_KEY_TOKEN = "<YOUR_REST_API_KEY>"; // App REST API key required for most endpoints
97+
const std::string ORG_KEY_TOKEN = "<YOUR_ORGANIZATION_API_KEY>"; // Organization key is only required for creating new apps and other top-level endpoints
9898

9999
static DefaultApi * createApi() {
100100
// Settings up the client
101101
const auto configuration = ApiClient::getDefaultConfiguration();
102-
configuration->setAppKeyToken(APP_KEY_TOKEN);
103-
configuration->setUserKeyToken(USER_KEY_TOKEN);
102+
configuration->setAppKeyToken(REST_KEY_TOKEN);
103+
configuration->setUserKeyToken(ORG_KEY_TOKEN);
104104

105105
const auto apiClient = std::make_shared<ApiClient>(configuration);
106106

0 commit comments

Comments
 (0)