@onesignal/node-onesignal 1.0.0-beta3 → 1.0.0-beta5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/ISSUE_TEMPLATE/ask-question.yml +25 -0
- package/.github/ISSUE_TEMPLATE/bug-report.yml +51 -0
- package/.github/ISSUE_TEMPLATE/general-feedback.yml +25 -0
- package/.github/pull_request_template.md +44 -0
- package/.github/workflows/npm_deploy.yml +21 -0
- package/CHANGELOG.md +26 -0
- package/DefaultApi.md +1232 -0
- package/LICENSE +24 -0
- package/README.md +205 -102
- package/RELEASE_INSTRUCTIONS.md +2 -0
- package/apis/DefaultApi.ts +519 -532
- package/apis/baseapi.ts +4 -4
- package/apis/exception.ts +4 -3
- package/auth/auth.ts +4 -1
- package/configuration.ts +21 -2
- package/http/http.ts +26 -26
- package/index.ts +1 -0
- package/middleware.ts +1 -1
- package/models/App.ts +8 -8
- package/models/BasicNotification.ts +1019 -0
- package/models/BasicNotificationAllOf.ts +897 -0
- package/models/{NotificationAllOfAndroidBackgroundLayout.ts → BasicNotificationAllOfAndroidBackgroundLayout.ts} +4 -4
- package/models/Button.ts +2 -2
- package/models/CancelNotificationSuccessResponse.ts +31 -0
- package/models/{InlineResponse400.ts → CreateNotificationBadRequestResponse.ts} +4 -4
- package/models/{InlineResponse200.ts → CreateNotificationSuccessResponse.ts} +7 -6
- package/models/{InlineResponse2004.ts → CreatePlayerSuccessResponse.ts} +4 -4
- package/models/CreateSegmentBadRequestResponse.ts +38 -0
- package/models/{InlineResponse409.ts → CreateSegmentConflictResponse.ts} +4 -4
- package/models/{InlineResponse201.ts → CreateSegmentSuccessResponse.ts} +4 -4
- package/models/DeletePlayerBadRequestResponse.ts +31 -0
- package/models/DeletePlayerNotFoundResponse.ts +31 -0
- package/models/{InlineResponse2003.ts → DeletePlayerSuccessResponse.ts} +4 -4
- package/models/{InlineResponse4002.ts → DeleteSegmentBadRequestResponse.ts} +4 -4
- package/models/DeleteSegmentNotFoundResponse.ts +31 -0
- package/models/DeleteSegmentSuccessResponse.ts +31 -0
- package/models/DeliveryData.ts +17 -2
- package/models/ExportPlayersRequestBody.ts +5 -5
- package/models/{InlineResponse2005.ts → ExportPlayersSuccessResponse.ts} +4 -4
- package/models/Filter.ts +4 -4
- package/models/FilterExpressions.ts +4 -4
- package/models/FilterNotificationTarget.ts +2 -2
- package/models/GetNotificationRequestBody.ts +2 -2
- package/models/InvalidIdentifierError.ts +44 -0
- package/models/Notification.ts +72 -174
- package/models/Notification200Errors.ts +45 -0
- package/models/NotificationAllOf.ts +3 -858
- package/models/{InlineResponse4001.ts → NotificationHistoryBadRequestResponse.ts} +4 -4
- package/models/{InlineResponse2002.ts → NotificationHistorySuccessResponse.ts} +6 -6
- package/models/NotificationSlice.ts +5 -5
- package/models/NotificationTarget.ts +3 -124
- package/models/NotificationWithMeta.ts +1127 -0
- package/models/NotificationWithMetaAllOf.ts +132 -0
- package/models/ObjectSerializer.ts +97 -46
- package/models/Operator.ts +2 -2
- package/models/OutcomeData.ts +2 -2
- package/models/OutcomesData.ts +32 -0
- package/models/PlatformDeliveryData.ts +18 -2
- package/models/PlatformDeliveryDataEmailAllOf.ts +94 -0
- package/models/PlatformDeliveryDataSmsAllOf.ts +54 -0
- package/models/Player.ts +14 -14
- package/models/PlayerNotificationTarget.ts +3 -3
- package/models/PlayerSlice.ts +2 -2
- package/models/Purchase.ts +2 -2
- package/models/Segment.ts +3 -3
- package/models/SegmentNotificationTarget.ts +2 -2
- package/models/StringMap.ts +3 -3
- package/models/{InlineResponse2001.ts → UpdatePlayerSuccessResponse.ts} +6 -6
- package/models/UpdatePlayerTagsRequestBody.ts +4 -4
- package/models/UpdatePlayerTagsSuccessResponse.ts +31 -0
- package/models/all.ts +28 -13
- package/package.json +14 -9
- package/tsconfig.json +1 -2
- package/types/ObjectParamAPI.ts +101 -86
- package/types/ObservableAPI.ts +116 -101
- package/types/PromiseAPI.ts +97 -82
- package/util.ts +10 -1
- package/git_push.sh +0 -52
package/DefaultApi.md
ADDED
|
@@ -0,0 +1,1232 @@
|
|
|
1
|
+
# .DefaultApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://onesignal.com/api/v1*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**cancelNotification**](DefaultApi.md#cancelNotification) | **DELETE** /notifications/{notification_id} | Stop a scheduled or currently outgoing notification
|
|
8
|
+
[**createApp**](DefaultApi.md#createApp) | **POST** /apps | Create an app
|
|
9
|
+
[**createNotification**](DefaultApi.md#createNotification) | **POST** /notifications | Create notification
|
|
10
|
+
[**createPlayer**](DefaultApi.md#createPlayer) | **POST** /players | Add a device
|
|
11
|
+
[**createSegments**](DefaultApi.md#createSegments) | **POST** /apps/{app_id}/segments | Create Segments
|
|
12
|
+
[**deletePlayer**](DefaultApi.md#deletePlayer) | **DELETE** /players/{player_id} | Delete a user record
|
|
13
|
+
[**deleteSegments**](DefaultApi.md#deleteSegments) | **DELETE** /apps/{app_id}/segments/{segment_id} | Delete Segments
|
|
14
|
+
[**exportPlayers**](DefaultApi.md#exportPlayers) | **POST** /players/csv_export?app_id={app_id} | CSV export
|
|
15
|
+
[**getApp**](DefaultApi.md#getApp) | **GET** /apps/{app_id} | View an app
|
|
16
|
+
[**getApps**](DefaultApi.md#getApps) | **GET** /apps | View apps
|
|
17
|
+
[**getNotification**](DefaultApi.md#getNotification) | **GET** /notifications/{notification_id} | View notification
|
|
18
|
+
[**getNotificationHistory**](DefaultApi.md#getNotificationHistory) | **POST** /notifications/{notification_id}/history | Notification History
|
|
19
|
+
[**getNotifications**](DefaultApi.md#getNotifications) | **GET** /notifications | View notifications
|
|
20
|
+
[**getOutcomes**](DefaultApi.md#getOutcomes) | **GET** /apps/{app_id}/outcomes | View Outcomes
|
|
21
|
+
[**getPlayer**](DefaultApi.md#getPlayer) | **GET** /players/{player_id} | View device
|
|
22
|
+
[**getPlayers**](DefaultApi.md#getPlayers) | **GET** /players | View devices
|
|
23
|
+
[**updateApp**](DefaultApi.md#updateApp) | **PUT** /apps/{app_id} | Update an app
|
|
24
|
+
[**updatePlayer**](DefaultApi.md#updatePlayer) | **PUT** /players/{player_id} | Edit device
|
|
25
|
+
[**updatePlayerTags**](DefaultApi.md#updatePlayerTags) | **PUT** /apps/{app_id}/users/{external_user_id} | Edit tags with external user id
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# **cancelNotification**
|
|
29
|
+
> CancelNotificationSuccessResponse cancelNotification()
|
|
30
|
+
|
|
31
|
+
Used to stop a scheduled or currently outgoing notification
|
|
32
|
+
|
|
33
|
+
### Example
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import { } from '';
|
|
38
|
+
import * as fs from 'fs';
|
|
39
|
+
|
|
40
|
+
const configuration = .createConfiguration();
|
|
41
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
42
|
+
|
|
43
|
+
let body:.DefaultApiCancelNotificationRequest = {
|
|
44
|
+
// string
|
|
45
|
+
appId: "app_id_example",
|
|
46
|
+
// string
|
|
47
|
+
notificationId: "notification_id_example",
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
apiInstance.cancelNotification(body).then((data:any) => {
|
|
51
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
52
|
+
}).catch((error:any) => console.error(error));
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Parameters
|
|
57
|
+
|
|
58
|
+
Name | Type | Description | Notes
|
|
59
|
+
------------- | ------------- | ------------- | -------------
|
|
60
|
+
**appId** | [**string**] | | defaults to undefined
|
|
61
|
+
**notificationId** | [**string**] | | defaults to undefined
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Return type
|
|
65
|
+
|
|
66
|
+
**CancelNotificationSuccessResponse**
|
|
67
|
+
|
|
68
|
+
### Authorization
|
|
69
|
+
|
|
70
|
+
[app_key](README.md#app_key)
|
|
71
|
+
|
|
72
|
+
### HTTP request headers
|
|
73
|
+
|
|
74
|
+
- **Content-Type**: Not defined
|
|
75
|
+
- **Accept**: application/json
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### HTTP response details
|
|
79
|
+
| Status code | Description | Response headers |
|
|
80
|
+
|-------------|-------------|------------------|
|
|
81
|
+
**200** | OK | - |
|
|
82
|
+
|
|
83
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
84
|
+
|
|
85
|
+
# **createApp**
|
|
86
|
+
> App createApp(app)
|
|
87
|
+
|
|
88
|
+
Creates a new OneSignal app
|
|
89
|
+
|
|
90
|
+
### Example
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
import { } from '';
|
|
95
|
+
import * as fs from 'fs';
|
|
96
|
+
|
|
97
|
+
const configuration = .createConfiguration();
|
|
98
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
99
|
+
|
|
100
|
+
let body:.DefaultApiCreateAppRequest = {
|
|
101
|
+
// App
|
|
102
|
+
app: {
|
|
103
|
+
name: "name_example",
|
|
104
|
+
android_gcm_sender_id: "android_gcm_sender_id_example",
|
|
105
|
+
gcm_key: "gcm_key_example",
|
|
106
|
+
chrome_web_origin: "chrome_web_origin_example",
|
|
107
|
+
chrome_key: "chrome_key_example",
|
|
108
|
+
chrome_web_default_notification_icon: "chrome_web_default_notification_icon_example",
|
|
109
|
+
chrome_web_sub_domain: "chrome_web_sub_domain_example",
|
|
110
|
+
apns_env: "sandbox",
|
|
111
|
+
apns_p12: "apns_p12_example",
|
|
112
|
+
apns_p12_password: "apns_p12_password_example",
|
|
113
|
+
safari_apns_p12: "safari_apns_p12_example",
|
|
114
|
+
safari_apns_p12_password: "safari_apns_p12_password_example",
|
|
115
|
+
safari_site_origin: "safari_site_origin_example",
|
|
116
|
+
safari_icon_256_256: "safari_icon_256_256_example",
|
|
117
|
+
site_name: "site_name_example",
|
|
118
|
+
organization_id: "organization_id_example",
|
|
119
|
+
additional_data_is_root_payload: true,
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
apiInstance.createApp(body).then((data:any) => {
|
|
124
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
125
|
+
}).catch((error:any) => console.error(error));
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
### Parameters
|
|
130
|
+
|
|
131
|
+
Name | Type | Description | Notes
|
|
132
|
+
------------- | ------------- | ------------- | -------------
|
|
133
|
+
**app** | **App**| |
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
### Return type
|
|
137
|
+
|
|
138
|
+
**App**
|
|
139
|
+
|
|
140
|
+
### Authorization
|
|
141
|
+
|
|
142
|
+
[user_key](README.md#user_key)
|
|
143
|
+
|
|
144
|
+
### HTTP request headers
|
|
145
|
+
|
|
146
|
+
- **Content-Type**: application/json
|
|
147
|
+
- **Accept**: application/json
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
### HTTP response details
|
|
151
|
+
| Status code | Description | Response headers |
|
|
152
|
+
|-------------|-------------|------------------|
|
|
153
|
+
**200** | OK | - |
|
|
154
|
+
|
|
155
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
156
|
+
|
|
157
|
+
# **createNotification**
|
|
158
|
+
> CreateNotificationSuccessResponse createNotification(notification)
|
|
159
|
+
|
|
160
|
+
Sends notifications to your users
|
|
161
|
+
|
|
162
|
+
### Example
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
```typescript
|
|
166
|
+
import { } from '';
|
|
167
|
+
import * as fs from 'fs';
|
|
168
|
+
|
|
169
|
+
const configuration = .createConfiguration();
|
|
170
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
171
|
+
|
|
172
|
+
let body:.DefaultApiCreateNotificationRequest = {
|
|
173
|
+
// Notification
|
|
174
|
+
notification: null,
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
apiInstance.createNotification(body).then((data:any) => {
|
|
178
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
179
|
+
}).catch((error:any) => console.error(error));
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
### Parameters
|
|
184
|
+
|
|
185
|
+
Name | Type | Description | Notes
|
|
186
|
+
------------- | ------------- | ------------- | -------------
|
|
187
|
+
**notification** | **Notification**| |
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
### Return type
|
|
191
|
+
|
|
192
|
+
**CreateNotificationSuccessResponse**
|
|
193
|
+
|
|
194
|
+
### Authorization
|
|
195
|
+
|
|
196
|
+
[app_key](README.md#app_key)
|
|
197
|
+
|
|
198
|
+
### HTTP request headers
|
|
199
|
+
|
|
200
|
+
- **Content-Type**: application/json
|
|
201
|
+
- **Accept**: application/json
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
### HTTP response details
|
|
205
|
+
| Status code | Description | Response headers |
|
|
206
|
+
|-------------|-------------|------------------|
|
|
207
|
+
**200** | OK, invalid_player_ids, invalid_external_user_ids or No Subscribed Players If a message was successfully created, you will get a 200 response and an id for the notification. If the 200 response contains \"invalid_player_ids\" or \"invalid_external_user_ids\" this will mark devices that exist in the provided app_id but are no longer subscribed. If no id is returned, then a message was not created and the targeted User IDs do not exist under the provided app_id. Any User IDs sent in the request that do not exist under the specified app_id will be ignored. | - |
|
|
208
|
+
**400** | Bad Request | - |
|
|
209
|
+
|
|
210
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
211
|
+
|
|
212
|
+
# **createPlayer**
|
|
213
|
+
> CreatePlayerSuccessResponse createPlayer(player)
|
|
214
|
+
|
|
215
|
+
Register a new device to one of your OneSignal apps 🚧 Don\'t use this This API endpoint is designed to be used from our open source Mobile and Web Push SDKs. It is not designed for developers to use it directly, unless instructed to do so by OneSignal support. If you use this method instead of our SDKs, many OneSignal features such as conversion tracking, timezone tracking, language detection, and rich-push won\'t work out of the box. It will also make it harder to identify possible setup issues. This method is used to register a new device with OneSignal. If a device is already registered with the specified identifier, then this will update the existing device record instead of creating a new one. The returned player is a player / user ID. Use the returned ID to send push notifications to this specific user later, or to include this player when sending to a set of users. 🚧 iOS Must set test_type to 1 when building your iOS app as development. Omit this field in your production app builds.
|
|
216
|
+
|
|
217
|
+
### Example
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
```typescript
|
|
221
|
+
import { } from '';
|
|
222
|
+
import * as fs from 'fs';
|
|
223
|
+
|
|
224
|
+
const configuration = .createConfiguration();
|
|
225
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
226
|
+
|
|
227
|
+
let body:.DefaultApiCreatePlayerRequest = {
|
|
228
|
+
// Player
|
|
229
|
+
player: {
|
|
230
|
+
app_id: "app_id_example",
|
|
231
|
+
device_type: 1,
|
|
232
|
+
external_user_id: "external_user_id_example",
|
|
233
|
+
external_user_id_auth_hash: "external_user_id_auth_hash_example",
|
|
234
|
+
email_auth_hash: "email_auth_hash_example",
|
|
235
|
+
identifier: "identifier_example",
|
|
236
|
+
language: "language_example",
|
|
237
|
+
timezone: 1,
|
|
238
|
+
game_version: "game_version_example",
|
|
239
|
+
device_model: "device_model_example",
|
|
240
|
+
device_os: "device_os_example",
|
|
241
|
+
ad_id: "ad_id_example",
|
|
242
|
+
sdk: "sdk_example",
|
|
243
|
+
session_count: 1,
|
|
244
|
+
tags: {},
|
|
245
|
+
amount_spent: 3.14,
|
|
246
|
+
created_at: 1,
|
|
247
|
+
playtime: 1,
|
|
248
|
+
badge_count: 1,
|
|
249
|
+
last_active: 1,
|
|
250
|
+
notification_types: 1,
|
|
251
|
+
test_type: 1,
|
|
252
|
+
_long: 3.14,
|
|
253
|
+
lat: 3.14,
|
|
254
|
+
country: "country_example",
|
|
255
|
+
},
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
apiInstance.createPlayer(body).then((data:any) => {
|
|
259
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
260
|
+
}).catch((error:any) => console.error(error));
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
### Parameters
|
|
265
|
+
|
|
266
|
+
Name | Type | Description | Notes
|
|
267
|
+
------------- | ------------- | ------------- | -------------
|
|
268
|
+
**player** | **Player**| |
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
### Return type
|
|
272
|
+
|
|
273
|
+
**CreatePlayerSuccessResponse**
|
|
274
|
+
|
|
275
|
+
### Authorization
|
|
276
|
+
|
|
277
|
+
[app_key](README.md#app_key)
|
|
278
|
+
|
|
279
|
+
### HTTP request headers
|
|
280
|
+
|
|
281
|
+
- **Content-Type**: application/json
|
|
282
|
+
- **Accept**: application/json
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
### HTTP response details
|
|
286
|
+
| Status code | Description | Response headers |
|
|
287
|
+
|-------------|-------------|------------------|
|
|
288
|
+
**200** | OK | - |
|
|
289
|
+
|
|
290
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
291
|
+
|
|
292
|
+
# **createSegments**
|
|
293
|
+
> CreateSegmentSuccessResponse createSegments()
|
|
294
|
+
|
|
295
|
+
Create segments visible and usable in the dashboard and API - Required: OneSignal Paid Plan The Create Segment method is used when you want your server to programmatically create a segment instead of using the OneSignal Dashboard UI. Just like creating Segments from the dashboard you can pass in filters with multiple \"AND\" or \"OR\" operator\'s. 🚧 Does Not Update Segments This endpoint will only create segments, it does not edit or update currently created Segments. You will need to use the Delete Segments endpoint and re-create it with this endpoint to edit.
|
|
296
|
+
|
|
297
|
+
### Example
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
```typescript
|
|
301
|
+
import { } from '';
|
|
302
|
+
import * as fs from 'fs';
|
|
303
|
+
|
|
304
|
+
const configuration = .createConfiguration();
|
|
305
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
306
|
+
|
|
307
|
+
let body:.DefaultApiCreateSegmentsRequest = {
|
|
308
|
+
// string | The OneSignal App ID for your app. Available in Keys & IDs.
|
|
309
|
+
appId: "app_id_example",
|
|
310
|
+
// Segment (optional)
|
|
311
|
+
segment: {
|
|
312
|
+
id: "id_example",
|
|
313
|
+
name: "name_example",
|
|
314
|
+
filters: [
|
|
315
|
+
null,
|
|
316
|
+
],
|
|
317
|
+
},
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
apiInstance.createSegments(body).then((data:any) => {
|
|
321
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
322
|
+
}).catch((error:any) => console.error(error));
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
### Parameters
|
|
327
|
+
|
|
328
|
+
Name | Type | Description | Notes
|
|
329
|
+
------------- | ------------- | ------------- | -------------
|
|
330
|
+
**segment** | **Segment**| |
|
|
331
|
+
**appId** | [**string**] | The OneSignal App ID for your app. Available in Keys & IDs. | defaults to undefined
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
### Return type
|
|
335
|
+
|
|
336
|
+
**CreateSegmentSuccessResponse**
|
|
337
|
+
|
|
338
|
+
### Authorization
|
|
339
|
+
|
|
340
|
+
[app_key](README.md#app_key)
|
|
341
|
+
|
|
342
|
+
### HTTP request headers
|
|
343
|
+
|
|
344
|
+
- **Content-Type**: application/json
|
|
345
|
+
- **Accept**: application/json
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
### HTTP response details
|
|
349
|
+
| Status code | Description | Response headers |
|
|
350
|
+
|-------------|-------------|------------------|
|
|
351
|
+
**201** | Created | - |
|
|
352
|
+
**400** | Bad Request | - |
|
|
353
|
+
**409** | Conflict | - |
|
|
354
|
+
|
|
355
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
356
|
+
|
|
357
|
+
# **deletePlayer**
|
|
358
|
+
> DeletePlayerSuccessResponse deletePlayer()
|
|
359
|
+
|
|
360
|
+
Delete player - Required: Used to delete a single, specific Player ID record from a specific OneSignal app.
|
|
361
|
+
|
|
362
|
+
### Example
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
```typescript
|
|
366
|
+
import { } from '';
|
|
367
|
+
import * as fs from 'fs';
|
|
368
|
+
|
|
369
|
+
const configuration = .createConfiguration();
|
|
370
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
371
|
+
|
|
372
|
+
let body:.DefaultApiDeletePlayerRequest = {
|
|
373
|
+
// string | The OneSignal App ID for your app. Available in Keys & IDs.
|
|
374
|
+
appId: "app_id_example",
|
|
375
|
+
// string | The OneSignal player_id
|
|
376
|
+
playerId: "player_id_example",
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
apiInstance.deletePlayer(body).then((data:any) => {
|
|
380
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
381
|
+
}).catch((error:any) => console.error(error));
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
### Parameters
|
|
386
|
+
|
|
387
|
+
Name | Type | Description | Notes
|
|
388
|
+
------------- | ------------- | ------------- | -------------
|
|
389
|
+
**appId** | [**string**] | The OneSignal App ID for your app. Available in Keys & IDs. | defaults to undefined
|
|
390
|
+
**playerId** | [**string**] | The OneSignal player_id | defaults to undefined
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
### Return type
|
|
394
|
+
|
|
395
|
+
**DeletePlayerSuccessResponse**
|
|
396
|
+
|
|
397
|
+
### Authorization
|
|
398
|
+
|
|
399
|
+
[app_key](README.md#app_key)
|
|
400
|
+
|
|
401
|
+
### HTTP request headers
|
|
402
|
+
|
|
403
|
+
- **Content-Type**: Not defined
|
|
404
|
+
- **Accept**: application/json
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
### HTTP response details
|
|
408
|
+
| Status code | Description | Response headers |
|
|
409
|
+
|-------------|-------------|------------------|
|
|
410
|
+
**200** | OK | - |
|
|
411
|
+
**400** | Bad Request | - |
|
|
412
|
+
**404** | Not Found | - |
|
|
413
|
+
|
|
414
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
415
|
+
|
|
416
|
+
# **deleteSegments**
|
|
417
|
+
> DeleteSegmentSuccessResponse deleteSegments()
|
|
418
|
+
|
|
419
|
+
Delete segments (not user devices) - Required: OneSignal Paid Plan You can delete a segment under your app by calling this API. You must provide an API key in the Authorization header that has admin access on the app. The segment_id can be found in the URL of the segment when viewing it in the dashboard.
|
|
420
|
+
|
|
421
|
+
### Example
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
```typescript
|
|
425
|
+
import { } from '';
|
|
426
|
+
import * as fs from 'fs';
|
|
427
|
+
|
|
428
|
+
const configuration = .createConfiguration();
|
|
429
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
430
|
+
|
|
431
|
+
let body:.DefaultApiDeleteSegmentsRequest = {
|
|
432
|
+
// string | The OneSignal App ID for your app. Available in Keys & IDs.
|
|
433
|
+
appId: "app_id_example",
|
|
434
|
+
// string | The segment_id can be found in the URL of the segment when viewing it in the dashboard.
|
|
435
|
+
segmentId: "segment_id_example",
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
apiInstance.deleteSegments(body).then((data:any) => {
|
|
439
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
440
|
+
}).catch((error:any) => console.error(error));
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
### Parameters
|
|
445
|
+
|
|
446
|
+
Name | Type | Description | Notes
|
|
447
|
+
------------- | ------------- | ------------- | -------------
|
|
448
|
+
**appId** | [**string**] | The OneSignal App ID for your app. Available in Keys & IDs. | defaults to undefined
|
|
449
|
+
**segmentId** | [**string**] | The segment_id can be found in the URL of the segment when viewing it in the dashboard. | defaults to undefined
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
### Return type
|
|
453
|
+
|
|
454
|
+
**DeleteSegmentSuccessResponse**
|
|
455
|
+
|
|
456
|
+
### Authorization
|
|
457
|
+
|
|
458
|
+
[app_key](README.md#app_key)
|
|
459
|
+
|
|
460
|
+
### HTTP request headers
|
|
461
|
+
|
|
462
|
+
- **Content-Type**: Not defined
|
|
463
|
+
- **Accept**: application/json
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
### HTTP response details
|
|
467
|
+
| Status code | Description | Response headers |
|
|
468
|
+
|-------------|-------------|------------------|
|
|
469
|
+
**200** | OK | - |
|
|
470
|
+
**400** | Bad Request | - |
|
|
471
|
+
**404** | Not Found | - |
|
|
472
|
+
|
|
473
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
474
|
+
|
|
475
|
+
# **exportPlayers**
|
|
476
|
+
> ExportPlayersSuccessResponse exportPlayers()
|
|
477
|
+
|
|
478
|
+
Generate a compressed CSV export of all of your current user data This method can be used to generate a compressed CSV export of all of your current user data. It is a much faster alternative than retrieving this data using the /players API endpoint. The file will be compressed using GZip. The file may take several minutes to generate depending on the number of users in your app. The URL generated will be available for 3 days and includes random v4 uuid as part of the resource name to be unguessable. 🚧 403 Error Responses You can test if it is complete by making a GET request to the csv_file_url value. This file may take time to generate depending on how many device records are being pulled. If the file is not ready, a 403 error will be returned. Otherwise the file itself will be returned. 🚧 Requires Authentication Key Requires your OneSignal App\'s REST API Key, available in Keys & IDs. 🚧 Concurrent Exports Only one concurrent export is allowed per OneSignal account. Please ensure you have successfully downloaded the .csv.gz file before exporting another app. CSV File Format: - Default Columns: | Field | Details | | --- | --- | | id | OneSignal Player Id | | identifier | Push Token | | session_count | Number of times they visited the app or site | language | Device language code | | timezone | Number of seconds away from UTC. Example: -28800 | | game_version | Version of your mobile app gathered from Android Studio versionCode in your App/build.gradle and iOS uses kCFBundleVersionKey in Xcode. | | device_os | Device Operating System Version. Example: 80 = Chrome 80, 9 = Android 9 | | device_type | Device Operating System Type | | device_model | Device Hardware String Code. Example: Mobile Web Subscribers will have `Linux armv` | | ad_id | Based on the Google Advertising Id for Android, identifierForVendor for iOS. OptedOut means user turned off Advertising tracking on the device. | | tags | Current OneSignal Data Tags on the device. | | last_active | Date and time the user last opened the mobile app or visited the site. | | playtime | Total amount of time in seconds the user had the mobile app open. | | amount_spent | Mobile only - amount spent in USD on In-App Purchases. | | created_at | Date and time the device record was created in OneSignal. Mobile - first time they opened the app with OneSignal SDK. Web - first time the user subscribed to the site. | | invalid_identifier | t = unsubscribed, f = subscibed | | badge_count | Current number of badges on the device | - Extra Columns: | Field | Details | | --- | --- | | external_user_id | Your User Id set on the device | | notification_types | Notification types | | location | Location points (Latitude and Longitude) set on the device. | | country | Country code | | rooted | Android device rooted or not | | ip | IP Address of the device if being tracked. See Handling Personal Data. | | web_auth | Web Only authorization key. | | web_p256 | Web Only p256 key. |
|
|
479
|
+
|
|
480
|
+
### Example
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
```typescript
|
|
484
|
+
import { } from '';
|
|
485
|
+
import * as fs from 'fs';
|
|
486
|
+
|
|
487
|
+
const configuration = .createConfiguration();
|
|
488
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
489
|
+
|
|
490
|
+
let body:.DefaultApiExportPlayersRequest = {
|
|
491
|
+
// string | The app ID that you want to export devices from
|
|
492
|
+
appId: "app_id_example",
|
|
493
|
+
// ExportPlayersRequestBody (optional)
|
|
494
|
+
exportPlayersRequestBody: {
|
|
495
|
+
extra_fields: [
|
|
496
|
+
"extra_fields_example",
|
|
497
|
+
],
|
|
498
|
+
last_active_since: "last_active_since_example",
|
|
499
|
+
segment_name: "segment_name_example",
|
|
500
|
+
},
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
apiInstance.exportPlayers(body).then((data:any) => {
|
|
504
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
505
|
+
}).catch((error:any) => console.error(error));
|
|
506
|
+
```
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
### Parameters
|
|
510
|
+
|
|
511
|
+
Name | Type | Description | Notes
|
|
512
|
+
------------- | ------------- | ------------- | -------------
|
|
513
|
+
**exportPlayersRequestBody** | **ExportPlayersRequestBody**| |
|
|
514
|
+
**appId** | [**string**] | The app ID that you want to export devices from | defaults to undefined
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
### Return type
|
|
518
|
+
|
|
519
|
+
**ExportPlayersSuccessResponse**
|
|
520
|
+
|
|
521
|
+
### Authorization
|
|
522
|
+
|
|
523
|
+
[app_key](README.md#app_key)
|
|
524
|
+
|
|
525
|
+
### HTTP request headers
|
|
526
|
+
|
|
527
|
+
- **Content-Type**: application/json
|
|
528
|
+
- **Accept**: application/json
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
### HTTP response details
|
|
532
|
+
| Status code | Description | Response headers |
|
|
533
|
+
|-------------|-------------|------------------|
|
|
534
|
+
**200** | OK | - |
|
|
535
|
+
**400** | Bad Request | - |
|
|
536
|
+
|
|
537
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
538
|
+
|
|
539
|
+
# **getApp**
|
|
540
|
+
> App getApp()
|
|
541
|
+
|
|
542
|
+
View the details of a single OneSignal app
|
|
543
|
+
|
|
544
|
+
### Example
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
```typescript
|
|
548
|
+
import { } from '';
|
|
549
|
+
import * as fs from 'fs';
|
|
550
|
+
|
|
551
|
+
const configuration = .createConfiguration();
|
|
552
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
553
|
+
|
|
554
|
+
let body:.DefaultApiGetAppRequest = {
|
|
555
|
+
// string | An app id
|
|
556
|
+
appId: "app_id_example",
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
apiInstance.getApp(body).then((data:any) => {
|
|
560
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
561
|
+
}).catch((error:any) => console.error(error));
|
|
562
|
+
```
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
### Parameters
|
|
566
|
+
|
|
567
|
+
Name | Type | Description | Notes
|
|
568
|
+
------------- | ------------- | ------------- | -------------
|
|
569
|
+
**appId** | [**string**] | An app id | defaults to undefined
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
### Return type
|
|
573
|
+
|
|
574
|
+
**App**
|
|
575
|
+
|
|
576
|
+
### Authorization
|
|
577
|
+
|
|
578
|
+
[user_key](README.md#user_key)
|
|
579
|
+
|
|
580
|
+
### HTTP request headers
|
|
581
|
+
|
|
582
|
+
- **Content-Type**: Not defined
|
|
583
|
+
- **Accept**: application/json
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
### HTTP response details
|
|
587
|
+
| Status code | Description | Response headers |
|
|
588
|
+
|-------------|-------------|------------------|
|
|
589
|
+
**200** | OK | - |
|
|
590
|
+
|
|
591
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
592
|
+
|
|
593
|
+
# **getApps**
|
|
594
|
+
> Array<App> getApps()
|
|
595
|
+
|
|
596
|
+
View the details of all of your current OneSignal apps
|
|
597
|
+
|
|
598
|
+
### Example
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
```typescript
|
|
602
|
+
import { } from '';
|
|
603
|
+
import * as fs from 'fs';
|
|
604
|
+
|
|
605
|
+
const configuration = .createConfiguration();
|
|
606
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
607
|
+
|
|
608
|
+
let body:any = {};
|
|
609
|
+
|
|
610
|
+
apiInstance.getApps(body).then((data:any) => {
|
|
611
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
612
|
+
}).catch((error:any) => console.error(error));
|
|
613
|
+
```
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
### Parameters
|
|
617
|
+
This endpoint does not need any parameter.
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
### Return type
|
|
621
|
+
|
|
622
|
+
**Array<App>**
|
|
623
|
+
|
|
624
|
+
### Authorization
|
|
625
|
+
|
|
626
|
+
[user_key](README.md#user_key)
|
|
627
|
+
|
|
628
|
+
### HTTP request headers
|
|
629
|
+
|
|
630
|
+
- **Content-Type**: Not defined
|
|
631
|
+
- **Accept**: application/json
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
### HTTP response details
|
|
635
|
+
| Status code | Description | Response headers |
|
|
636
|
+
|-------------|-------------|------------------|
|
|
637
|
+
**200** | OK | - |
|
|
638
|
+
|
|
639
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
640
|
+
|
|
641
|
+
# **getNotification**
|
|
642
|
+
> NotificationWithMeta getNotification()
|
|
643
|
+
|
|
644
|
+
View the details of a single notification and outcomes associated with it
|
|
645
|
+
|
|
646
|
+
### Example
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
```typescript
|
|
650
|
+
import { } from '';
|
|
651
|
+
import * as fs from 'fs';
|
|
652
|
+
|
|
653
|
+
const configuration = .createConfiguration();
|
|
654
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
655
|
+
|
|
656
|
+
let body:.DefaultApiGetNotificationRequest = {
|
|
657
|
+
// string
|
|
658
|
+
appId: "app_id_example",
|
|
659
|
+
// string
|
|
660
|
+
notificationId: "notification_id_example",
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
apiInstance.getNotification(body).then((data:any) => {
|
|
664
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
665
|
+
}).catch((error:any) => console.error(error));
|
|
666
|
+
```
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
### Parameters
|
|
670
|
+
|
|
671
|
+
Name | Type | Description | Notes
|
|
672
|
+
------------- | ------------- | ------------- | -------------
|
|
673
|
+
**appId** | [**string**] | | defaults to undefined
|
|
674
|
+
**notificationId** | [**string**] | | defaults to undefined
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
### Return type
|
|
678
|
+
|
|
679
|
+
**NotificationWithMeta**
|
|
680
|
+
|
|
681
|
+
### Authorization
|
|
682
|
+
|
|
683
|
+
[app_key](README.md#app_key)
|
|
684
|
+
|
|
685
|
+
### HTTP request headers
|
|
686
|
+
|
|
687
|
+
- **Content-Type**: Not defined
|
|
688
|
+
- **Accept**: application/json
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
### HTTP response details
|
|
692
|
+
| Status code | Description | Response headers |
|
|
693
|
+
|-------------|-------------|------------------|
|
|
694
|
+
**200** | OK | - |
|
|
695
|
+
|
|
696
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
697
|
+
|
|
698
|
+
# **getNotificationHistory**
|
|
699
|
+
> NotificationHistorySuccessResponse getNotificationHistory(getNotificationRequestBody)
|
|
700
|
+
|
|
701
|
+
-> View the devices sent a message - OneSignal Paid Plan Required This method will return all devices that were sent the given notification_id of an Email or Push Notification if used within 7 days of the date sent. After 7 days of the sending date, the message history data will be unavailable. After a successful response is received, the destination url may be polled until the file becomes available. Most exports are done in ~1-3 minutes, so setting a poll interval of 10 seconds should be adequate. For use cases that are not meant to be consumed by a script, an email will be sent to the supplied email address. 🚧 Requirements A OneSignal Paid Plan. Turn on Send History via OneSignal API in Settings -> Analytics. Cannot get data before this was turned on. Must be called within 7 days after sending the message. Messages targeting under 1000 recipients will not have \"sent\" events recorded, but will show \"clicked\" events. Requires your OneSignal App\'s REST API Key, available in Keys & IDs.
|
|
702
|
+
|
|
703
|
+
### Example
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
```typescript
|
|
707
|
+
import { } from '';
|
|
708
|
+
import * as fs from 'fs';
|
|
709
|
+
|
|
710
|
+
const configuration = .createConfiguration();
|
|
711
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
712
|
+
|
|
713
|
+
let body:.DefaultApiGetNotificationHistoryRequest = {
|
|
714
|
+
// string | The \"id\" of the message found in the Notification object
|
|
715
|
+
notificationId: "notification_id_example",
|
|
716
|
+
// GetNotificationRequestBody
|
|
717
|
+
getNotificationRequestBody: {
|
|
718
|
+
events: "sent",
|
|
719
|
+
email: "email_example",
|
|
720
|
+
app_id: "app_id_example",
|
|
721
|
+
},
|
|
722
|
+
};
|
|
723
|
+
|
|
724
|
+
apiInstance.getNotificationHistory(body).then((data:any) => {
|
|
725
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
726
|
+
}).catch((error:any) => console.error(error));
|
|
727
|
+
```
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
### Parameters
|
|
731
|
+
|
|
732
|
+
Name | Type | Description | Notes
|
|
733
|
+
------------- | ------------- | ------------- | -------------
|
|
734
|
+
**getNotificationRequestBody** | **GetNotificationRequestBody**| |
|
|
735
|
+
**notificationId** | [**string**] | The \"id\" of the message found in the Notification object | defaults to undefined
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
### Return type
|
|
739
|
+
|
|
740
|
+
**NotificationHistorySuccessResponse**
|
|
741
|
+
|
|
742
|
+
### Authorization
|
|
743
|
+
|
|
744
|
+
[app_key](README.md#app_key)
|
|
745
|
+
|
|
746
|
+
### HTTP request headers
|
|
747
|
+
|
|
748
|
+
- **Content-Type**: application/json
|
|
749
|
+
- **Accept**: application/json
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
### HTTP response details
|
|
753
|
+
| Status code | Description | Response headers |
|
|
754
|
+
|-------------|-------------|------------------|
|
|
755
|
+
**200** | OK | - |
|
|
756
|
+
**400** | Bad Request | - |
|
|
757
|
+
|
|
758
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
759
|
+
|
|
760
|
+
# **getNotifications**
|
|
761
|
+
> NotificationSlice getNotifications()
|
|
762
|
+
|
|
763
|
+
View the details of multiple notifications
|
|
764
|
+
|
|
765
|
+
### Example
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
```typescript
|
|
769
|
+
import { } from '';
|
|
770
|
+
import * as fs from 'fs';
|
|
771
|
+
|
|
772
|
+
const configuration = .createConfiguration();
|
|
773
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
774
|
+
|
|
775
|
+
let body:.DefaultApiGetNotificationsRequest = {
|
|
776
|
+
// string | The app ID that you want to view notifications from
|
|
777
|
+
appId: "app_id_example",
|
|
778
|
+
// number | How many notifications to return. Max is 50. Default is 50. (optional)
|
|
779
|
+
limit: 1,
|
|
780
|
+
// number | Page offset. Default is 0. Results are sorted by queued_at in descending order. queued_at is a representation of the time that the notification was queued at. (optional)
|
|
781
|
+
offset: 1,
|
|
782
|
+
// 0 | 1 | 3 | Kind of notifications returned: * unset - All notification types (default) * `0` - Dashboard only * `1` - API only * `3` - Automated only (optional)
|
|
783
|
+
kind: 0,
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
apiInstance.getNotifications(body).then((data:any) => {
|
|
787
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
788
|
+
}).catch((error:any) => console.error(error));
|
|
789
|
+
```
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
### Parameters
|
|
793
|
+
|
|
794
|
+
Name | Type | Description | Notes
|
|
795
|
+
------------- | ------------- | ------------- | -------------
|
|
796
|
+
**appId** | [**string**] | The app ID that you want to view notifications from | defaults to undefined
|
|
797
|
+
**limit** | [**number**] | How many notifications to return. Max is 50. Default is 50. | (optional) defaults to undefined
|
|
798
|
+
**offset** | [**number**] | Page offset. Default is 0. Results are sorted by queued_at in descending order. queued_at is a representation of the time that the notification was queued at. | (optional) defaults to undefined
|
|
799
|
+
**kind** | [**0 | 1 | 3**]**Array<0 | 1 | 3>** | Kind of notifications returned: * unset - All notification types (default) * `0` - Dashboard only * `1` - API only * `3` - Automated only | (optional) defaults to undefined
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
### Return type
|
|
803
|
+
|
|
804
|
+
**NotificationSlice**
|
|
805
|
+
|
|
806
|
+
### Authorization
|
|
807
|
+
|
|
808
|
+
[app_key](README.md#app_key)
|
|
809
|
+
|
|
810
|
+
### HTTP request headers
|
|
811
|
+
|
|
812
|
+
- **Content-Type**: Not defined
|
|
813
|
+
- **Accept**: application/json
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
### HTTP response details
|
|
817
|
+
| Status code | Description | Response headers |
|
|
818
|
+
|-------------|-------------|------------------|
|
|
819
|
+
**200** | OK | - |
|
|
820
|
+
|
|
821
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
822
|
+
|
|
823
|
+
# **getOutcomes**
|
|
824
|
+
> OutcomesData getOutcomes()
|
|
825
|
+
|
|
826
|
+
View the details of all the outcomes associated with your app 🚧 Requires Authentication Key Requires your OneSignal App\'s REST API Key, available in Keys & IDs. 🚧 Outcome Data Limitations Outcomes are only accessible for around 30 days before deleted from our servers. You will need to export this data every month if you want to keep it.
|
|
827
|
+
|
|
828
|
+
### Example
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
```typescript
|
|
832
|
+
import { } from '';
|
|
833
|
+
import * as fs from 'fs';
|
|
834
|
+
|
|
835
|
+
const configuration = .createConfiguration();
|
|
836
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
837
|
+
|
|
838
|
+
let body:.DefaultApiGetOutcomesRequest = {
|
|
839
|
+
// string | The OneSignal App ID for your app. Available in Keys & IDs.
|
|
840
|
+
appId: "app_id_example",
|
|
841
|
+
// string | Required Comma-separated list of names and the value (sum/count) for the returned outcome data. Note: Clicks only support count aggregation. For out-of-the-box OneSignal outcomes such as click and session duration, please use the \"os\" prefix with two underscores. For other outcomes, please use the name specified by the user. Example:os__session_duration.count,os__click.count,CustomOutcomeName.sum
|
|
842
|
+
outcomeNames: "outcome_names_example",
|
|
843
|
+
// string | Optional If outcome names contain any commas, then please specify only one value at a time. Example: outcome_names[]=os__click.count&outcome_names[]=Sales, Purchase.count where \"Sales, Purchase\" is the custom outcomes with a comma in the name. (optional)
|
|
844
|
+
outcomeNames2: "outcome_names[]_example",
|
|
845
|
+
// string | Optional Time range for the returned data. The values can be 1h (for the last 1 hour data), 1d (for the last 1 day data), or 1mo (for the last 1 month data). Default is 1h if the parameter is omitted. (optional)
|
|
846
|
+
outcomeTimeRange: "outcome_time_range_example",
|
|
847
|
+
// string | Optional Platform id. Refer device\'s platform ids for values. Example: outcome_platform=0 for iOS outcome_platform=7,8 for Safari and Firefox Default is data from all platforms if the parameter is omitted. (optional)
|
|
848
|
+
outcomePlatforms: "outcome_platforms_example",
|
|
849
|
+
// string | Optional Attribution type for the outcomes. The values can be direct or influenced or unattributed. Example: outcome_attribution=direct Default is total (returns direct+influenced+unattributed) if the parameter is omitted. (optional)
|
|
850
|
+
outcomeAttribution: "outcome_attribution_example",
|
|
851
|
+
};
|
|
852
|
+
|
|
853
|
+
apiInstance.getOutcomes(body).then((data:any) => {
|
|
854
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
855
|
+
}).catch((error:any) => console.error(error));
|
|
856
|
+
```
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
### Parameters
|
|
860
|
+
|
|
861
|
+
Name | Type | Description | Notes
|
|
862
|
+
------------- | ------------- | ------------- | -------------
|
|
863
|
+
**appId** | [**string**] | The OneSignal App ID for your app. Available in Keys & IDs. | defaults to undefined
|
|
864
|
+
**outcomeNames** | [**string**] | Required Comma-separated list of names and the value (sum/count) for the returned outcome data. Note: Clicks only support count aggregation. For out-of-the-box OneSignal outcomes such as click and session duration, please use the \"os\" prefix with two underscores. For other outcomes, please use the name specified by the user. Example:os__session_duration.count,os__click.count,CustomOutcomeName.sum | defaults to undefined
|
|
865
|
+
**outcomeNames2** | [**string**] | Optional If outcome names contain any commas, then please specify only one value at a time. Example: outcome_names[]=os__click.count&outcome_names[]=Sales, Purchase.count where \"Sales, Purchase\" is the custom outcomes with a comma in the name. | (optional) defaults to undefined
|
|
866
|
+
**outcomeTimeRange** | [**string**] | Optional Time range for the returned data. The values can be 1h (for the last 1 hour data), 1d (for the last 1 day data), or 1mo (for the last 1 month data). Default is 1h if the parameter is omitted. | (optional) defaults to undefined
|
|
867
|
+
**outcomePlatforms** | [**string**] | Optional Platform id. Refer device\'s platform ids for values. Example: outcome_platform=0 for iOS outcome_platform=7,8 for Safari and Firefox Default is data from all platforms if the parameter is omitted. | (optional) defaults to undefined
|
|
868
|
+
**outcomeAttribution** | [**string**] | Optional Attribution type for the outcomes. The values can be direct or influenced or unattributed. Example: outcome_attribution=direct Default is total (returns direct+influenced+unattributed) if the parameter is omitted. | (optional) defaults to undefined
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
### Return type
|
|
872
|
+
|
|
873
|
+
**OutcomesData**
|
|
874
|
+
|
|
875
|
+
### Authorization
|
|
876
|
+
|
|
877
|
+
[app_key](README.md#app_key)
|
|
878
|
+
|
|
879
|
+
### HTTP request headers
|
|
880
|
+
|
|
881
|
+
- **Content-Type**: Not defined
|
|
882
|
+
- **Accept**: application/json
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
### HTTP response details
|
|
886
|
+
| Status code | Description | Response headers |
|
|
887
|
+
|-------------|-------------|------------------|
|
|
888
|
+
**200** | OK | - |
|
|
889
|
+
|
|
890
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
891
|
+
|
|
892
|
+
# **getPlayer**
|
|
893
|
+
> Player getPlayer()
|
|
894
|
+
|
|
895
|
+
View the details of an existing device in one of your OneSignal apps
|
|
896
|
+
|
|
897
|
+
### Example
|
|
898
|
+
|
|
899
|
+
|
|
900
|
+
```typescript
|
|
901
|
+
import { } from '';
|
|
902
|
+
import * as fs from 'fs';
|
|
903
|
+
|
|
904
|
+
const configuration = .createConfiguration();
|
|
905
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
906
|
+
|
|
907
|
+
let body:.DefaultApiGetPlayerRequest = {
|
|
908
|
+
// string | Your app_id for this device
|
|
909
|
+
appId: "app_id_example",
|
|
910
|
+
// string | Player\'s OneSignal ID
|
|
911
|
+
playerId: "player_id_example",
|
|
912
|
+
// string | Email - Only required if you have enabled Identity Verification and device_type is email (11). (optional)
|
|
913
|
+
emailAuthHash: "email_auth_hash_example",
|
|
914
|
+
};
|
|
915
|
+
|
|
916
|
+
apiInstance.getPlayer(body).then((data:any) => {
|
|
917
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
918
|
+
}).catch((error:any) => console.error(error));
|
|
919
|
+
```
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
### Parameters
|
|
923
|
+
|
|
924
|
+
Name | Type | Description | Notes
|
|
925
|
+
------------- | ------------- | ------------- | -------------
|
|
926
|
+
**appId** | [**string**] | Your app_id for this device | defaults to undefined
|
|
927
|
+
**playerId** | [**string**] | Player\'s OneSignal ID | defaults to undefined
|
|
928
|
+
**emailAuthHash** | [**string**] | Email - Only required if you have enabled Identity Verification and device_type is email (11). | (optional) defaults to undefined
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
### Return type
|
|
932
|
+
|
|
933
|
+
**Player**
|
|
934
|
+
|
|
935
|
+
### Authorization
|
|
936
|
+
|
|
937
|
+
[app_key](README.md#app_key)
|
|
938
|
+
|
|
939
|
+
### HTTP request headers
|
|
940
|
+
|
|
941
|
+
- **Content-Type**: Not defined
|
|
942
|
+
- **Accept**: application/json
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
### HTTP response details
|
|
946
|
+
| Status code | Description | Response headers |
|
|
947
|
+
|-------------|-------------|------------------|
|
|
948
|
+
**200** | OK | - |
|
|
949
|
+
|
|
950
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
951
|
+
|
|
952
|
+
# **getPlayers**
|
|
953
|
+
> PlayerSlice getPlayers()
|
|
954
|
+
|
|
955
|
+
View the details of multiple devices in one of your OneSignal apps Unavailable for Apps Over 80,000 Users For performance reasons, this method is not available for larger apps. Larger apps should use the CSV export API endpoint, which is much more performant.
|
|
956
|
+
|
|
957
|
+
### Example
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
```typescript
|
|
961
|
+
import { } from '';
|
|
962
|
+
import * as fs from 'fs';
|
|
963
|
+
|
|
964
|
+
const configuration = .createConfiguration();
|
|
965
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
966
|
+
|
|
967
|
+
let body:.DefaultApiGetPlayersRequest = {
|
|
968
|
+
// string | The app ID that you want to view players from
|
|
969
|
+
appId: "app_id_example",
|
|
970
|
+
// number | How many devices to return. Max is 300. Default is 300 (optional)
|
|
971
|
+
limit: 1,
|
|
972
|
+
// number | Result offset. Default is 0. Results are sorted by id; (optional)
|
|
973
|
+
offset: 1,
|
|
974
|
+
};
|
|
975
|
+
|
|
976
|
+
apiInstance.getPlayers(body).then((data:any) => {
|
|
977
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
978
|
+
}).catch((error:any) => console.error(error));
|
|
979
|
+
```
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
### Parameters
|
|
983
|
+
|
|
984
|
+
Name | Type | Description | Notes
|
|
985
|
+
------------- | ------------- | ------------- | -------------
|
|
986
|
+
**appId** | [**string**] | The app ID that you want to view players from | defaults to undefined
|
|
987
|
+
**limit** | [**number**] | How many devices to return. Max is 300. Default is 300 | (optional) defaults to undefined
|
|
988
|
+
**offset** | [**number**] | Result offset. Default is 0. Results are sorted by id; | (optional) defaults to undefined
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
### Return type
|
|
992
|
+
|
|
993
|
+
**PlayerSlice**
|
|
994
|
+
|
|
995
|
+
### Authorization
|
|
996
|
+
|
|
997
|
+
[app_key](README.md#app_key)
|
|
998
|
+
|
|
999
|
+
### HTTP request headers
|
|
1000
|
+
|
|
1001
|
+
- **Content-Type**: Not defined
|
|
1002
|
+
- **Accept**: application/json
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
### HTTP response details
|
|
1006
|
+
| Status code | Description | Response headers |
|
|
1007
|
+
|-------------|-------------|------------------|
|
|
1008
|
+
**200** | OK | - |
|
|
1009
|
+
|
|
1010
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1011
|
+
|
|
1012
|
+
# **updateApp**
|
|
1013
|
+
> App updateApp(app)
|
|
1014
|
+
|
|
1015
|
+
Updates the name or configuration settings of an existing OneSignal app
|
|
1016
|
+
|
|
1017
|
+
### Example
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
```typescript
|
|
1021
|
+
import { } from '';
|
|
1022
|
+
import * as fs from 'fs';
|
|
1023
|
+
|
|
1024
|
+
const configuration = .createConfiguration();
|
|
1025
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
1026
|
+
|
|
1027
|
+
let body:.DefaultApiUpdateAppRequest = {
|
|
1028
|
+
// string | An app id
|
|
1029
|
+
appId: "app_id_example",
|
|
1030
|
+
// App
|
|
1031
|
+
app: {
|
|
1032
|
+
name: "name_example",
|
|
1033
|
+
android_gcm_sender_id: "android_gcm_sender_id_example",
|
|
1034
|
+
gcm_key: "gcm_key_example",
|
|
1035
|
+
chrome_web_origin: "chrome_web_origin_example",
|
|
1036
|
+
chrome_key: "chrome_key_example",
|
|
1037
|
+
chrome_web_default_notification_icon: "chrome_web_default_notification_icon_example",
|
|
1038
|
+
chrome_web_sub_domain: "chrome_web_sub_domain_example",
|
|
1039
|
+
apns_env: "sandbox",
|
|
1040
|
+
apns_p12: "apns_p12_example",
|
|
1041
|
+
apns_p12_password: "apns_p12_password_example",
|
|
1042
|
+
safari_apns_p12: "safari_apns_p12_example",
|
|
1043
|
+
safari_apns_p12_password: "safari_apns_p12_password_example",
|
|
1044
|
+
safari_site_origin: "safari_site_origin_example",
|
|
1045
|
+
safari_icon_256_256: "safari_icon_256_256_example",
|
|
1046
|
+
site_name: "site_name_example",
|
|
1047
|
+
organization_id: "organization_id_example",
|
|
1048
|
+
additional_data_is_root_payload: true,
|
|
1049
|
+
},
|
|
1050
|
+
};
|
|
1051
|
+
|
|
1052
|
+
apiInstance.updateApp(body).then((data:any) => {
|
|
1053
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
1054
|
+
}).catch((error:any) => console.error(error));
|
|
1055
|
+
```
|
|
1056
|
+
|
|
1057
|
+
|
|
1058
|
+
### Parameters
|
|
1059
|
+
|
|
1060
|
+
Name | Type | Description | Notes
|
|
1061
|
+
------------- | ------------- | ------------- | -------------
|
|
1062
|
+
**app** | **App**| |
|
|
1063
|
+
**appId** | [**string**] | An app id | defaults to undefined
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
### Return type
|
|
1067
|
+
|
|
1068
|
+
**App**
|
|
1069
|
+
|
|
1070
|
+
### Authorization
|
|
1071
|
+
|
|
1072
|
+
[user_key](README.md#user_key)
|
|
1073
|
+
|
|
1074
|
+
### HTTP request headers
|
|
1075
|
+
|
|
1076
|
+
- **Content-Type**: application/json
|
|
1077
|
+
- **Accept**: application/json
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
### HTTP response details
|
|
1081
|
+
| Status code | Description | Response headers |
|
|
1082
|
+
|-------------|-------------|------------------|
|
|
1083
|
+
**200** | OK | - |
|
|
1084
|
+
|
|
1085
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1086
|
+
|
|
1087
|
+
# **updatePlayer**
|
|
1088
|
+
> UpdatePlayerSuccessResponse updatePlayer(player)
|
|
1089
|
+
|
|
1090
|
+
Update an existing device in one of your OneSignal apps
|
|
1091
|
+
|
|
1092
|
+
### Example
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
```typescript
|
|
1096
|
+
import { } from '';
|
|
1097
|
+
import * as fs from 'fs';
|
|
1098
|
+
|
|
1099
|
+
const configuration = .createConfiguration();
|
|
1100
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
1101
|
+
|
|
1102
|
+
let body:.DefaultApiUpdatePlayerRequest = {
|
|
1103
|
+
// string | Player\'s OneSignal ID
|
|
1104
|
+
playerId: "player_id_example",
|
|
1105
|
+
// Player
|
|
1106
|
+
player: {
|
|
1107
|
+
app_id: "app_id_example",
|
|
1108
|
+
device_type: 1,
|
|
1109
|
+
external_user_id: "external_user_id_example",
|
|
1110
|
+
external_user_id_auth_hash: "external_user_id_auth_hash_example",
|
|
1111
|
+
email_auth_hash: "email_auth_hash_example",
|
|
1112
|
+
identifier: "identifier_example",
|
|
1113
|
+
language: "language_example",
|
|
1114
|
+
timezone: 1,
|
|
1115
|
+
game_version: "game_version_example",
|
|
1116
|
+
device_model: "device_model_example",
|
|
1117
|
+
device_os: "device_os_example",
|
|
1118
|
+
ad_id: "ad_id_example",
|
|
1119
|
+
sdk: "sdk_example",
|
|
1120
|
+
session_count: 1,
|
|
1121
|
+
tags: {},
|
|
1122
|
+
amount_spent: 3.14,
|
|
1123
|
+
created_at: 1,
|
|
1124
|
+
playtime: 1,
|
|
1125
|
+
badge_count: 1,
|
|
1126
|
+
last_active: 1,
|
|
1127
|
+
notification_types: 1,
|
|
1128
|
+
test_type: 1,
|
|
1129
|
+
_long: 3.14,
|
|
1130
|
+
lat: 3.14,
|
|
1131
|
+
country: "country_example",
|
|
1132
|
+
},
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
apiInstance.updatePlayer(body).then((data:any) => {
|
|
1136
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
1137
|
+
}).catch((error:any) => console.error(error));
|
|
1138
|
+
```
|
|
1139
|
+
|
|
1140
|
+
|
|
1141
|
+
### Parameters
|
|
1142
|
+
|
|
1143
|
+
Name | Type | Description | Notes
|
|
1144
|
+
------------- | ------------- | ------------- | -------------
|
|
1145
|
+
**player** | **Player**| |
|
|
1146
|
+
**playerId** | [**string**] | Player\'s OneSignal ID | defaults to undefined
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
### Return type
|
|
1150
|
+
|
|
1151
|
+
**UpdatePlayerSuccessResponse**
|
|
1152
|
+
|
|
1153
|
+
### Authorization
|
|
1154
|
+
|
|
1155
|
+
[app_key](README.md#app_key)
|
|
1156
|
+
|
|
1157
|
+
### HTTP request headers
|
|
1158
|
+
|
|
1159
|
+
- **Content-Type**: application/json
|
|
1160
|
+
- **Accept**: application/json
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
### HTTP response details
|
|
1164
|
+
| Status code | Description | Response headers |
|
|
1165
|
+
|-------------|-------------|------------------|
|
|
1166
|
+
**200** | OK | - |
|
|
1167
|
+
|
|
1168
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1169
|
+
|
|
1170
|
+
# **updatePlayerTags**
|
|
1171
|
+
> UpdatePlayerTagsSuccessResponse updatePlayerTags()
|
|
1172
|
+
|
|
1173
|
+
Update an existing device\'s tags in one of your OneSignal apps using the External User ID. Warning - Android SDK Data Synchronization Tags added through the Android SDK tagging methods may not update if using the API to change or update the same tag. For example, if you use SDK method sendTag(\"key\", \"value1\") then update the tag value to \"value2\" with this API endpoint. You will not be able to set the value back to \"value1\" through the SDK, you will need to change it to something different through the SDK to be reset. Recommendations if using this Endpoint on Android Mobile Apps: 1 - Do not use the same tag keys for SDK and API updates 2 - If you want to use the same key for both SDK and API updates, call the SDK getTags method first to update the device\'s tags. This is only applicable on the Android Mobile App SDKs. 📘 Deleting Tags To delete a tag, include its key and set its value to blank. Omitting a key/value will not delete it. For example, if I wanted to delete two existing tags rank and category while simultaneously adding a new tag class, the tags JSON would look like the following: \"tags\": { \"rank\": \"\", \"category\": \"\", \"class\": \"my_new_value\" }
|
|
1174
|
+
|
|
1175
|
+
### Example
|
|
1176
|
+
|
|
1177
|
+
|
|
1178
|
+
```typescript
|
|
1179
|
+
import { } from '';
|
|
1180
|
+
import * as fs from 'fs';
|
|
1181
|
+
|
|
1182
|
+
const configuration = .createConfiguration();
|
|
1183
|
+
const apiInstance = new .DefaultApi(configuration);
|
|
1184
|
+
|
|
1185
|
+
let body:.DefaultApiUpdatePlayerTagsRequest = {
|
|
1186
|
+
// string | The OneSignal App ID the user record is found under.
|
|
1187
|
+
appId: "app_id_example",
|
|
1188
|
+
// string | The External User ID mapped to teh device record in OneSignal. Must be actively set on the device to be updated.
|
|
1189
|
+
externalUserId: "external_user_id_example",
|
|
1190
|
+
// UpdatePlayerTagsRequestBody (optional)
|
|
1191
|
+
updatePlayerTagsRequestBody: {
|
|
1192
|
+
tags: {},
|
|
1193
|
+
},
|
|
1194
|
+
};
|
|
1195
|
+
|
|
1196
|
+
apiInstance.updatePlayerTags(body).then((data:any) => {
|
|
1197
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
1198
|
+
}).catch((error:any) => console.error(error));
|
|
1199
|
+
```
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
### Parameters
|
|
1203
|
+
|
|
1204
|
+
Name | Type | Description | Notes
|
|
1205
|
+
------------- | ------------- | ------------- | -------------
|
|
1206
|
+
**updatePlayerTagsRequestBody** | **UpdatePlayerTagsRequestBody**| |
|
|
1207
|
+
**appId** | [**string**] | The OneSignal App ID the user record is found under. | defaults to undefined
|
|
1208
|
+
**externalUserId** | [**string**] | The External User ID mapped to teh device record in OneSignal. Must be actively set on the device to be updated. | defaults to undefined
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
### Return type
|
|
1212
|
+
|
|
1213
|
+
**UpdatePlayerTagsSuccessResponse**
|
|
1214
|
+
|
|
1215
|
+
### Authorization
|
|
1216
|
+
|
|
1217
|
+
[app_key](README.md#app_key)
|
|
1218
|
+
|
|
1219
|
+
### HTTP request headers
|
|
1220
|
+
|
|
1221
|
+
- **Content-Type**: application/json
|
|
1222
|
+
- **Accept**: application/json
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
### HTTP response details
|
|
1226
|
+
| Status code | Description | Response headers |
|
|
1227
|
+
|-------------|-------------|------------------|
|
|
1228
|
+
**200** | OK | - |
|
|
1229
|
+
|
|
1230
|
+
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1231
|
+
|
|
1232
|
+
|