@@ -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
- userKey : ' <YOUR_USER_KEY_TOKEN >' ,
65
- appKey : ' <YOUR_APP_KEY_TOKEN >' ,
64
+ userAuthKey : ' <YOUR_USER_AUTH_KEY >' ,
65
+ restApiKey : ' <YOUR_REST_API_KEY >' ,
66
66
});
67
67
68
68
const client = new OneSignal.DefaultApi (configuration);
@@ -76,8 +76,8 @@ 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
- userKey : ' <YOUR_USER_KEY_TOKEN>' ,
80
- appKey : response .basic_auth_key ,
79
+ userAuthKey : ' <YOUR_USER_KEY_TOKEN>' ,
80
+ restApiKey : response .basic_auth_key ,
81
81
});
82
82
83
83
const client = new OneSignal.DefaultApi (configuration);
@@ -86,14 +86,14 @@ const client = new OneSignal.DefaultApi(configuration);
86
86
---
87
87
## API Reference
88
88
89
- > See the full list of [ API Endpoints] ( DefaultApi.MD ) .
89
+ > See the full list of [ API Endpoints] ( DefaultApi.md ) .
90
90
91
91
To make stateful changes requests should take on the following pattern:
92
92
1 . create or get an object
93
93
2 . make changes to that object
94
94
3 . pass the object to the request function to make the changes
95
95
96
- Examples of important OneSignal objects include ` App ` , ` Notification ` , ` Player ` , and ` Segment ` .
96
+ Examples of important OneSignal objects include ` App ` , ` Notification ` , ` User ` , and ` Segment ` .
97
97
98
98
For example, see the section below on creating an app. First an app object is created via the instantiation of the ` App `
99
99
class. Then, the app instance is modified directly. Finally, we use the ` client ` to create the app via a remote request.
0 commit comments