Skip to content

Commit 147244e

Browse files
authored
Merge pull request #39 from OneSignal/api
409 and 429 errors
2 parents 7ed733c + 3cff572 commit 147244e

File tree

110 files changed

+778
-1134
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+778
-1134
lines changed

README.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
44

5-
- API version: 1.2.1
6-
- SDK version: 2.0.0
5+
- API version: 1.2.2
6+
- SDK version: 2.0.2
77
- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen
88
For more information, please visit [https://onesignal.com](https://onesignal.com)
99

@@ -140,7 +140,8 @@ Class | Method | HTTP request | Description
140140
*DefaultApi* | [**DeleteSubscription**](docs/DefaultApi.md#deletesubscription) | **DELETE** /apps/{app_id}/subscriptions/{subscription_id} |
141141
*DefaultApi* | [**DeleteUser**](docs/DefaultApi.md#deleteuser) | **DELETE** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
142142
*DefaultApi* | [**EndLiveActivity**](docs/DefaultApi.md#endliveactivity) | **DELETE** /apps/{app_id}/live_activities/{activity_id}/token/{subscription_id} | Stop Live Activity
143-
*DefaultApi* | [**ExportPlayers**](docs/DefaultApi.md#exportplayers) | **POST** /players/csv_export?app_id={app_id} | CSV export
143+
*DefaultApi* | [**ExportEvents**](docs/DefaultApi.md#exportevents) | **POST** /notifications/{notification_id}/export_events?app_id={app_id} | Export CSV of Events
144+
*DefaultApi* | [**ExportPlayers**](docs/DefaultApi.md#exportplayers) | **POST** /players/csv_export?app_id={app_id} | Export CSV of Players
144145
*DefaultApi* | [**FetchAliases**](docs/DefaultApi.md#fetchaliases) | **GET** /apps/{app_id}/subscriptions/{subscription_id}/user/identity |
145146
*DefaultApi* | [**FetchUser**](docs/DefaultApi.md#fetchuser) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id} |
146147
*DefaultApi* | [**FetchUserIdentity**](docs/DefaultApi.md#fetchuseridentity) | **GET** /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity |
@@ -168,7 +169,6 @@ Class | Method | HTTP request | Description
168169
## Documentation for Models
169170

170171
- [Model.App](docs/App.md)
171-
- [Model.BadRequestError](docs/BadRequestError.md)
172172
- [Model.BasicNotification](docs/BasicNotification.md)
173173
- [Model.BasicNotificationAllOf](docs/BasicNotificationAllOf.md)
174174
- [Model.BasicNotificationAllOfAndroidBackgroundLayout](docs/BasicNotificationAllOfAndroidBackgroundLayout.md)
@@ -188,13 +188,14 @@ Class | Method | HTTP request | Description
188188
- [Model.DeleteSegmentNotFoundResponse](docs/DeleteSegmentNotFoundResponse.md)
189189
- [Model.DeleteSegmentSuccessResponse](docs/DeleteSegmentSuccessResponse.md)
190190
- [Model.DeliveryData](docs/DeliveryData.md)
191+
- [Model.ExportEventsSuccessResponse](docs/ExportEventsSuccessResponse.md)
191192
- [Model.ExportPlayersRequestBody](docs/ExportPlayersRequestBody.md)
192193
- [Model.ExportPlayersSuccessResponse](docs/ExportPlayersSuccessResponse.md)
193194
- [Model.Filter](docs/Filter.md)
194195
- [Model.FilterExpressions](docs/FilterExpressions.md)
196+
- [Model.GenericError](docs/GenericError.md)
197+
- [Model.GenericErrorErrorsInner](docs/GenericErrorErrorsInner.md)
195198
- [Model.GetNotificationRequestBody](docs/GetNotificationRequestBody.md)
196-
- [Model.IdentifyUserConflictResponse](docs/IdentifyUserConflictResponse.md)
197-
- [Model.IdentifyUserConflictResponseErrorsInner](docs/IdentifyUserConflictResponseErrorsInner.md)
198199
- [Model.InlineResponse200](docs/InlineResponse200.md)
199200
- [Model.InlineResponse2003](docs/InlineResponse2003.md)
200201
- [Model.InlineResponse201](docs/InlineResponse201.md)
@@ -221,6 +222,7 @@ Class | Method | HTTP request | Description
221222
- [Model.PropertiesDeltas](docs/PropertiesDeltas.md)
222223
- [Model.PropertiesObject](docs/PropertiesObject.md)
223224
- [Model.Purchase](docs/Purchase.md)
225+
- [Model.RateLimiterError](docs/RateLimiterError.md)
224226
- [Model.Segment](docs/Segment.md)
225227
- [Model.SegmentNotificationTarget](docs/SegmentNotificationTarget.md)
226228
- [Model.StringMap](docs/StringMap.md)

docs/BasicNotification.md

+3
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,12 @@ Name | Type | Description | Notes
104104
**EmailBody** | **string** | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional]
105105
**EmailFromName** | **string** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional]
106106
**EmailFromAddress** | **string** | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional]
107+
**EmailPreheader** | **string** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional]
108+
**IncludeUnsubscribed** | **bool** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional]
107109
**SmsFrom** | **string** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional]
108110
**SmsMediaUrls** | **List<string>** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional]
109111
**Filters** | [**List<Filter>**](Filter.md) | | [optional]
112+
**CustomData** | **Object** | Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} | [optional]
110113

111114
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
112115

docs/BasicNotificationAllOf.md

+3
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,12 @@ Name | Type | Description | Notes
9090
**EmailBody** | **string** | Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid. | [optional]
9191
**EmailFromName** | **string** | Channel: Email The name the email is from. If not specified, will default to \"from name\" set in the OneSignal Dashboard Email Settings. | [optional]
9292
**EmailFromAddress** | **string** | Channel: Email The email address the email is from. If not specified, will default to \"from email\" set in the OneSignal Dashboard Email Settings. | [optional]
93+
**EmailPreheader** | **string** | Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null. | [optional]
94+
**IncludeUnsubscribed** | **bool** | Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP's list of unsubscribed emails to be cleared. | [optional]
9395
**SmsFrom** | **string** | Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format. | [optional]
9496
**SmsMediaUrls** | **List<string>** | Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs. | [optional]
9597
**Filters** | [**List<Filter>**](Filter.md) | | [optional]
98+
**CustomData** | **Object** | Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25} | [optional]
9699

97100
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
98101

docs/CreateSegmentBadRequestResponse.md

-11
This file was deleted.

0 commit comments

Comments
 (0)