File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,8 @@ You can configure auth parameters passing them like this:
61
61
62
62
``` js
63
63
const configuration = OneSignal .createConfiguration ({
64
- userAuthKey: ' <YOUR_USER_AUTH_KEY >' ,
65
- restApiKey: ' <YOUR_REST_API_KEY>' ,
64
+ userAuthKey: ' <YOUR_ORGANIZATION_API_KEY >' , // Organization key is only required for creating new apps and other top-level endpoints
65
+ restApiKey: ' <YOUR_REST_API_KEY>' , // App rest api key required for most endpoints
66
66
});
67
67
68
68
const client = new OneSignal.DefaultApi (configuration);
@@ -76,7 +76,7 @@ parameter. You can then use this to modify your configuration object and create
76
76
const response = await client .createApp (newapp);
77
77
78
78
const configuration = OneSignal .createConfiguration ({
79
- userAuthKey: ' <YOUR_USER_KEY_TOKEN >' ,
79
+ userAuthKey: ' <YOUR_ORGANIZATION_API_KEY >' ,
80
80
restApiKey: response .basic_auth_key ,
81
81
});
82
82
@@ -586,4 +586,4 @@ Give a ⭐️ if this project helped you!
586
586
587
587
Copyright © 2023 [ OneSignal] ( https://github.com/OneSignal ) .
588
588
589
- This project is [ MIT] ( https://github.com/OneSignal/node-onesignal/blob/main/LICENSE ) licensed.
589
+ This project is [ MIT] ( https://github.com/OneSignal/node-onesignal/blob/main/LICENSE ) licensed.
You can’t perform that action at this time.
0 commit comments