Skip to content

Commit 4a2bcc7

Browse files
authored
Merge pull request #44 from OneSignal/api
docs: update auth key references to match public docs
2 parents daa69ee + 494b055 commit 4a2bcc7

File tree

2 files changed

+114
-38
lines changed

2 files changed

+114
-38
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ require 'onesignal'
5959

6060
# Setup authorization
6161
OneSignal.configure do |config|
62+
# Configure Bearer authorization: user_key
63+
config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
6264
# Configure Bearer authorization: app_key
63-
config.access_token = 'YOUR_BEARER_TOKEN'
65+
config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
6466
end
6567

6668
api_instance = OneSignal::DefaultApi.new

0 commit comments

Comments
 (0)