onesignal 1.0.0.beta1 → 2.2.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +31 -0
- data/Gemfile.lock +74 -0
- data/LICENSE +24 -0
- data/README.md +77 -23
- data/RELEASE_INSTRUCTIONS.md +11 -0
- data/docs/App.md +9 -1
- data/docs/BasicNotification.md +230 -0
- data/docs/BasicNotificationAllOf.md +202 -0
- data/docs/{NotificationAllOfAndroidBackgroundLayout.md → BasicNotificationAllOfAndroidBackgroundLayout.md} +2 -2
- data/docs/BeginLiveActivityRequest.md +20 -0
- data/docs/CancelNotificationSuccessResponse.md +18 -0
- data/docs/CreateNotificationSuccessResponse.md +24 -0
- data/docs/{InlineResponse2004.md → CreatePlayerSuccessResponse.md} +2 -2
- data/docs/{InlineResponse409.md → CreateSegmentConflictResponse.md} +2 -2
- data/docs/CreateSegmentSuccessResponse.md +20 -0
- data/docs/CreateSubscriptionRequestBody.md +20 -0
- data/docs/CreateUserConflictResponse.md +18 -0
- data/docs/CreateUserConflictResponseErrorsInner.md +22 -0
- data/docs/CreateUserConflictResponseErrorsItemsMeta.md +18 -0
- data/docs/DefaultApi.md +1629 -304
- data/docs/DeletePlayerNotFoundResponse.md +18 -0
- data/docs/{InlineResponse2001.md → DeletePlayerSuccessResponse.md} +3 -3
- data/docs/DeleteSegmentNotFoundResponse.md +18 -0
- data/docs/DeleteSegmentSuccessResponse.md +18 -0
- data/docs/DeliveryData.md +5 -5
- data/docs/{InlineResponse2005.md → ExportEventsSuccessResponse.md} +2 -2
- data/docs/ExportPlayersRequestBody.md +2 -2
- data/docs/ExportPlayersSuccessResponse.md +18 -0
- data/docs/Filter.md +1 -1
- data/docs/FilterExpressions.md +1 -1
- data/docs/GenericError.md +18 -0
- data/docs/GenericErrorErrorsInner.md +20 -0
- data/docs/InlineResponse200.md +2 -8
- data/docs/InlineResponse2003.md +2 -2
- data/docs/InlineResponse201.md +2 -4
- data/docs/InlineResponse202.md +18 -0
- data/docs/InvalidIdentifierError.md +20 -0
- data/docs/Notification.md +33 -41
- data/docs/Notification200Errors.md +49 -0
- data/docs/NotificationAllOf.md +2 -176
- data/docs/{InlineResponse2002.md → NotificationHistorySuccessResponse.md} +3 -3
- data/docs/NotificationSlice.md +1 -1
- data/docs/NotificationTarget.md +6 -26
- data/docs/NotificationWithMeta.md +252 -0
- data/docs/NotificationWithMetaAllOf.md +38 -0
- data/docs/OutcomesData.md +18 -0
- data/docs/PlatformDeliveryData.md +5 -1
- data/docs/PlatformDeliveryDataEmailAllOf.md +30 -0
- data/docs/PlatformDeliveryDataSmsAllOf.md +22 -0
- data/docs/Player.md +3 -3
- data/docs/PlayerNotificationTarget.md +6 -2
- data/docs/PlayerNotificationTargetIncludeAliases.md +18 -0
- data/docs/PropertiesDeltas.md +22 -0
- data/docs/PropertiesObject.md +38 -0
- data/docs/Purchase.md +4 -2
- data/docs/RateLimiterError.md +18 -0
- data/docs/StringMap.md +1 -1
- data/docs/SubscriptionObject.md +50 -0
- data/docs/TransferSubscriptionRequestBody.md +18 -0
- data/docs/UpdateLiveActivityRequest.md +24 -0
- data/docs/UpdateLiveActivitySuccessResponse.md +20 -0
- data/docs/UpdatePlayerSuccessResponse.md +18 -0
- data/docs/UpdatePlayerTagsSuccessResponse.md +18 -0
- data/docs/UpdateSubscriptionRequestBody.md +18 -0
- data/docs/UpdateUserRequest.md +22 -0
- data/docs/User.md +24 -0
- data/docs/UserIdentityRequestBody.md +18 -0
- data/docs/UserIdentityResponse.md +18 -0
- data/docs/UserSubscriptionOptions.md +18 -0
- data/lib/onesignal/api/default_api.rb +1657 -268
- data/lib/onesignal/api_client.rb +9 -7
- data/lib/onesignal/api_error.rb +2 -2
- data/lib/onesignal/configuration.rb +11 -8
- data/lib/onesignal/models/app.rb +59 -8
- data/lib/onesignal/models/basic_notification.rb +1442 -0
- data/lib/onesignal/models/basic_notification_all_of.rb +1252 -0
- data/lib/onesignal/models/{notification_all_of_android_background_layout.rb → basic_notification_all_of_android_background_layout.rb} +6 -5
- data/lib/onesignal/models/begin_live_activity_request.rb +238 -0
- data/lib/onesignal/models/button.rb +3 -2
- data/lib/onesignal/models/cancel_notification_success_response.rb +219 -0
- data/lib/onesignal/models/create_notification_success_response.rb +248 -0
- data/lib/onesignal/models/{inline_response2004.rb → create_player_success_response.rb} +6 -5
- data/lib/onesignal/models/{inline_response409.rb → create_segment_conflict_response.rb} +6 -5
- data/lib/onesignal/models/create_segment_success_response.rb +229 -0
- data/lib/onesignal/models/create_subscription_request_body.rb +228 -0
- data/lib/onesignal/models/{inline_response4001.rb → create_user_conflict_response.rb} +8 -16
- data/lib/onesignal/models/create_user_conflict_response_errors_inner.rb +237 -0
- data/lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb +219 -0
- data/lib/onesignal/models/delete_player_not_found_response.rb +219 -0
- data/lib/onesignal/models/{inline_response2001.rb → delete_player_success_response.rb} +7 -6
- data/lib/onesignal/models/delete_segment_not_found_response.rb +219 -0
- data/lib/onesignal/models/delete_segment_success_response.rb +219 -0
- data/lib/onesignal/models/delivery_data.rb +13 -2
- data/lib/onesignal/models/{inline_response2005.rb → export_events_success_response.rb} +6 -5
- data/lib/onesignal/models/export_players_request_body.rb +5 -4
- data/lib/onesignal/models/export_players_success_response.rb +219 -0
- data/lib/onesignal/models/filter.rb +4 -3
- data/lib/onesignal/models/filter_expressions.rb +4 -3
- data/lib/onesignal/models/{inline_response400.rb → generic_error.rb} +7 -6
- data/lib/onesignal/models/generic_error_errors_inner.rb +228 -0
- data/lib/onesignal/models/get_notification_request_body.rb +3 -2
- data/lib/onesignal/models/inline_response200.rb +12 -47
- data/lib/onesignal/models/inline_response2003.rb +12 -9
- data/lib/onesignal/models/inline_response201.rb +10 -19
- data/lib/onesignal/models/{inline_response4002.rb → inline_response202.rb} +13 -14
- data/lib/onesignal/models/invalid_identifier_error.rb +234 -0
- data/lib/onesignal/models/notification.rb +209 -157
- data/lib/onesignal/models/notification200_errors.rb +105 -0
- data/lib/onesignal/models/notification_all_of.rb +8 -911
- data/lib/onesignal/models/{inline_response2002.rb → notification_history_success_response.rb} +7 -6
- data/lib/onesignal/models/notification_slice.rb +4 -3
- data/lib/onesignal/models/notification_target.rb +63 -128
- data/lib/onesignal/models/notification_with_meta.rb +1557 -0
- data/lib/onesignal/models/notification_with_meta_all_of.rb +323 -0
- data/lib/onesignal/models/operator.rb +3 -2
- data/lib/onesignal/models/outcome_data.rb +3 -2
- data/lib/onesignal/models/outcomes_data.rb +221 -0
- data/lib/onesignal/models/platform_delivery_data.rb +27 -6
- data/lib/onesignal/models/platform_delivery_data_email_all_of.rb +287 -0
- data/lib/onesignal/models/platform_delivery_data_sms_all_of.rb +243 -0
- data/lib/onesignal/models/player.rb +14 -13
- data/lib/onesignal/models/player_notification_target.rb +63 -7
- data/lib/onesignal/models/player_notification_target_include_aliases.rb +221 -0
- data/lib/onesignal/models/player_slice.rb +3 -2
- data/lib/onesignal/models/properties_deltas.rb +239 -0
- data/lib/onesignal/models/properties_object.rb +313 -0
- data/lib/onesignal/models/purchase.rb +17 -7
- data/lib/onesignal/models/rate_limiter_error.rb +221 -0
- data/lib/onesignal/models/segment.rb +3 -2
- data/lib/onesignal/models/segment_notification_target.rb +3 -2
- data/lib/onesignal/models/string_map.rb +3 -7
- data/lib/onesignal/models/{filter_notification_target.rb → subscription_object.rb} +147 -79
- data/lib/onesignal/models/transfer_subscription_request_body.rb +221 -0
- data/lib/onesignal/models/update_live_activity_request.rb +309 -0
- data/lib/onesignal/models/update_live_activity_success_response.rb +228 -0
- data/lib/onesignal/models/update_player_success_response.rb +219 -0
- data/lib/onesignal/models/update_player_tags_request_body.rb +3 -2
- data/lib/onesignal/models/update_player_tags_success_response.rb +219 -0
- data/lib/onesignal/models/update_subscription_request_body.rb +219 -0
- data/lib/onesignal/models/update_user_request.rb +239 -0
- data/lib/onesignal/models/user.rb +250 -0
- data/lib/onesignal/models/user_identity_request_body.rb +221 -0
- data/lib/onesignal/models/user_identity_response.rb +221 -0
- data/lib/onesignal/models/user_subscription_options.rb +219 -0
- data/lib/onesignal/version.rb +3 -3
- data/lib/onesignal.rb +111 -0
- data/onesignal.gemspec +5 -4
- data/spec/api/default_api_spec.rb +263 -26
- data/spec/api_client_spec.rb +4 -4
- data/spec/configuration_spec.rb +5 -5
- data/spec/models/app_spec.rb +26 -2
- data/spec/models/{notification_all_of_android_background_layout_spec.rb → basic_notification_all_of_android_background_layout_spec.rb} +8 -8
- data/spec/models/basic_notification_all_of_spec.rb +590 -0
- data/spec/models/basic_notification_spec.rb +678 -0
- data/spec/models/begin_live_activity_request_spec.rb +40 -0
- data/spec/models/button_spec.rb +2 -2
- data/spec/models/cancel_notification_success_response_spec.rb +34 -0
- data/spec/models/create_notification_success_response_spec.rb +52 -0
- data/spec/models/{inline_response2004_spec.rb → create_player_success_response_spec.rb} +8 -8
- data/spec/models/{inline_response4001_spec.rb → create_segment_conflict_response_spec.rb} +8 -8
- data/spec/models/{inline_response409_spec.rb → create_segment_success_response_spec.rb} +9 -9
- data/spec/models/create_subscription_request_body_spec.rb +40 -0
- data/spec/models/create_user_conflict_response_errors_inner_spec.rb +46 -0
- data/spec/models/create_user_conflict_response_errors_items_meta_spec.rb +34 -0
- data/spec/models/create_user_conflict_response_spec.rb +34 -0
- data/spec/models/delete_player_not_found_response_spec.rb +34 -0
- data/spec/models/{inline_response2001_spec.rb → delete_player_success_response_spec.rb} +8 -8
- data/spec/models/delete_segment_not_found_response_spec.rb +34 -0
- data/spec/models/delete_segment_success_response_spec.rb +34 -0
- data/spec/models/delivery_data_spec.rb +2 -2
- data/spec/models/{inline_response2005_spec.rb → export_events_success_response_spec.rb} +8 -8
- data/spec/models/export_players_request_body_spec.rb +2 -2
- data/spec/models/export_players_success_response_spec.rb +34 -0
- data/spec/models/filter_expressions_spec.rb +2 -2
- data/spec/models/filter_spec.rb +2 -2
- data/spec/models/generic_error_errors_inner_spec.rb +40 -0
- data/spec/models/{inline_response4002_spec.rb → generic_error_spec.rb} +9 -9
- data/spec/models/get_notification_request_body_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +3 -3
- data/spec/models/inline_response200_spec.rb +3 -21
- data/spec/models/inline_response201_spec.rb +3 -9
- data/spec/models/{inline_response400_spec.rb → inline_response202_spec.rb} +9 -9
- data/spec/models/invalid_identifier_error_spec.rb +40 -0
- data/spec/models/notification200_errors_spec.rb +31 -0
- data/spec/models/notification_all_of_spec.rb +2 -528
- data/spec/models/{inline_response2002_spec.rb → notification_history_success_response_spec.rb} +8 -8
- data/spec/models/notification_slice_spec.rb +2 -2
- data/spec/models/notification_spec.rb +58 -78
- data/spec/models/notification_target_spec.rb +18 -74
- data/spec/models/notification_with_meta_all_of_spec.rb +94 -0
- data/spec/models/notification_with_meta_spec.rb +744 -0
- data/spec/models/operator_spec.rb +2 -2
- data/spec/models/outcome_data_spec.rb +2 -2
- data/spec/models/outcomes_data_spec.rb +34 -0
- data/spec/models/platform_delivery_data_email_all_of_spec.rb +70 -0
- data/spec/models/platform_delivery_data_sms_all_of_spec.rb +46 -0
- data/spec/models/platform_delivery_data_spec.rb +14 -2
- data/spec/models/player_notification_target_include_aliases_spec.rb +34 -0
- data/spec/models/player_notification_target_spec.rb +18 -2
- data/spec/models/player_slice_spec.rb +2 -2
- data/spec/models/player_spec.rb +2 -2
- data/spec/models/properties_deltas_spec.rb +46 -0
- data/spec/models/{filter_notification_target_spec.rb → properties_object_spec.rb} +19 -25
- data/spec/models/purchase_spec.rb +8 -2
- data/spec/models/rate_limiter_error_spec.rb +34 -0
- data/spec/models/segment_notification_target_spec.rb +2 -2
- data/spec/models/segment_spec.rb +2 -2
- data/spec/models/string_map_spec.rb +2 -2
- data/spec/models/subscription_object_spec.rb +134 -0
- data/spec/models/transfer_subscription_request_body_spec.rb +34 -0
- data/spec/models/update_live_activity_request_spec.rb +60 -0
- data/spec/models/update_live_activity_success_response_spec.rb +40 -0
- data/spec/models/update_player_success_response_spec.rb +34 -0
- data/spec/models/update_player_tags_request_body_spec.rb +2 -2
- data/spec/models/update_player_tags_success_response_spec.rb +34 -0
- data/spec/models/update_subscription_request_body_spec.rb +34 -0
- data/spec/models/update_user_request_spec.rb +46 -0
- data/spec/models/user_identity_request_body_spec.rb +34 -0
- data/spec/models/user_identity_response_spec.rb +34 -0
- data/spec/models/user_spec.rb +52 -0
- data/spec/models/user_subscription_options_spec.rb +34 -0
- data/spec/spec_helper.rb +2 -2
- metadata +198 -51
- data/docs/FilterNotificationTarget.md +0 -40
- data/docs/InlineResponse400.md +0 -18
- data/docs/InlineResponse4001.md +0 -20
- data/docs/InlineResponse4002.md +0 -18
- data/git_push.sh +0 -58
- data/lib/OneSignal.rb +0 -75
@@ -0,0 +1,38 @@
|
|
1
|
+
# OneSignal::NotificationWithMetaAllOf
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **remaining** | **Integer** | Number of notifications that have not been sent out yet. This can mean either our system is still processing the notification or you have delayed options set. | [optional] |
|
8
|
+
| **successful** | **Integer** | Number of notifications that were successfully delivered. | [optional] |
|
9
|
+
| **failed** | **Integer** | Number of notifications that could not be delivered due to those devices being unsubscribed. | [optional] |
|
10
|
+
| **errored** | **Integer** | Number of notifications that could not be delivered due to an error. You can find more information by viewing the notification in the dashboard. | [optional] |
|
11
|
+
| **converted** | **Integer** | Number of users who have clicked / tapped on your notification. | [optional] |
|
12
|
+
| **queued_at** | **Integer** | Unix timestamp indicating when the notification was created. | [optional] |
|
13
|
+
| **send_after** | **Integer** | Unix timestamp indicating when notification delivery should begin. | [optional] |
|
14
|
+
| **completed_at** | **Integer** | Unix timestamp indicating when notification delivery completed. The delivery duration from start to finish can be calculated with completed_at - send_after. | [optional] |
|
15
|
+
| **platform_delivery_stats** | [**PlatformDeliveryData**](PlatformDeliveryData.md) | | [optional] |
|
16
|
+
| **received** | **Integer** | Confirmed Deliveries number of devices that received the push notification. Paid Feature Only. Free accounts will see 0. | [optional] |
|
17
|
+
| **throttle_rate_per_minute** | **Integer** | number of push notifications sent per minute. Paid Feature Only. If throttling is not enabled for the app or the notification, and for free accounts, null is returned. Refer to Throttling for more details. | [optional] |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'onesignal'
|
23
|
+
|
24
|
+
instance = OneSignal::NotificationWithMetaAllOf.new(
|
25
|
+
remaining: null,
|
26
|
+
successful: null,
|
27
|
+
failed: null,
|
28
|
+
errored: null,
|
29
|
+
converted: null,
|
30
|
+
queued_at: null,
|
31
|
+
send_after: null,
|
32
|
+
completed_at: null,
|
33
|
+
platform_delivery_stats: null,
|
34
|
+
received: null,
|
35
|
+
throttle_rate_per_minute: null
|
36
|
+
)
|
37
|
+
```
|
38
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OneSignal::OutcomesData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **outcomes** | [**Array<OutcomeData>**](OutcomeData.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'onesignal'
|
13
|
+
|
14
|
+
instance = OneSignal::OutcomesData.new(
|
15
|
+
outcomes: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -10,6 +10,8 @@
|
|
10
10
|
| **safari_web_push** | [**DeliveryData**](DeliveryData.md) | | [optional] |
|
11
11
|
| **android** | [**DeliveryData**](DeliveryData.md) | | [optional] |
|
12
12
|
| **ios** | [**DeliveryData**](DeliveryData.md) | | [optional] |
|
13
|
+
| **sms** | [**DeliveryData**](DeliveryData.md) | | [optional] |
|
14
|
+
| **email** | [**DeliveryData**](DeliveryData.md) | | [optional] |
|
13
15
|
|
14
16
|
## Example
|
15
17
|
|
@@ -22,7 +24,9 @@ instance = OneSignal::PlatformDeliveryData.new(
|
|
22
24
|
firefox_web_push: null,
|
23
25
|
safari_web_push: null,
|
24
26
|
android: null,
|
25
|
-
ios: null
|
27
|
+
ios: null,
|
28
|
+
sms: null,
|
29
|
+
email: null
|
26
30
|
)
|
27
31
|
```
|
28
32
|
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# OneSignal::PlatformDeliveryDataEmailAllOf
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **opened** | **Integer** | Number of times an email has been opened. | [optional] |
|
8
|
+
| **unique_opens** | **Integer** | Number of unique recipients who have opened your email. | [optional] |
|
9
|
+
| **clicks** | **Integer** | Number of clicked links from your email. This can include the recipient clicking email links multiple times. | [optional] |
|
10
|
+
| **unique_clicks** | **Integer** | Number of unique clicks that your recipients have made on links from your email. | [optional] |
|
11
|
+
| **bounced** | **Integer** | Number of recipients who registered as a hard or soft bounce and didn't receive your email. | [optional] |
|
12
|
+
| **reported_spam** | **Integer** | Number of recipients who reported this email as spam. | [optional] |
|
13
|
+
| **unsubscribed** | **Integer** | Number of recipients who opted out of your emails using the unsubscribe link in this email. | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'onesignal'
|
19
|
+
|
20
|
+
instance = OneSignal::PlatformDeliveryDataEmailAllOf.new(
|
21
|
+
opened: null,
|
22
|
+
unique_opens: null,
|
23
|
+
clicks: null,
|
24
|
+
unique_clicks: null,
|
25
|
+
bounced: null,
|
26
|
+
reported_spam: null,
|
27
|
+
unsubscribed: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# OneSignal::PlatformDeliveryDataSmsAllOf
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **provider_successful** | **Integer** | Number of messages reported as delivered successfully by the SMS service provider. | [optional] |
|
8
|
+
| **provider_failed** | **Integer** | Number of recipients who didn't receive your message as reported by the SMS service provider. | [optional] |
|
9
|
+
| **provider_errored** | **Integer** | Number of errors reported by the SMS service provider. | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'onesignal'
|
15
|
+
|
16
|
+
instance = OneSignal::PlatformDeliveryDataSmsAllOf.new(
|
17
|
+
provider_successful: null,
|
18
|
+
provider_failed: null,
|
19
|
+
provider_errored: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/Player.md
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **id** | **String** | The device's OneSignal ID | [readonly] |
|
7
|
+
| **id** | **String** | The device's OneSignal ID | [optional][readonly] |
|
8
8
|
| **invalid_identifier** | **Boolean** | If true, this is the equivalent of a user being Unsubscribed | [optional][readonly] |
|
9
|
-
| **app_id** | **String** | |
|
9
|
+
| **app_id** | **String** | | [optional] |
|
10
10
|
| **device_type** | **Integer** | Required The device's platform: 0 = iOS 1 = Android 2 = Amazon 3 = WindowsPhone (MPNS) 4 = Chrome Apps / Extensions 5 = Chrome Web Push 6 = Windows (WNS) 7 = Safari 8 = Firefox 9 = MacOS 10 = Alexa 11 = Email 13 = For Huawei App Gallery Builds SDK Setup. Not for Huawei Devices using FCM 14 = SMS | |
|
11
11
|
| **external_user_id** | **String** | a custom user ID | [optional] |
|
12
12
|
| **external_user_id_auth_hash** | **String** | Only required if you have enabled Identity Verification and device_type is NOT 11 email. | [optional] |
|
@@ -21,7 +21,7 @@
|
|
21
21
|
| **sdk** | **String** | Name and version of the sdk/plugin that's calling this API method (if any) | [optional] |
|
22
22
|
| **session_count** | **Integer** | Number of times the user has played the game, defaults to 1 | [optional] |
|
23
23
|
| **tags** | **Object** | Custom tags for the player. Only support string and integer key value pairs. Does not support arrays or other nested objects. Setting a tag value to null or an empty string will remove the tag. Example: {\"foo\":\"bar\",\"this\":\"that\"} Limitations: - 100 tags per call - Android SDK users: tags cannot be removed or changed via API if set through SDK sendTag methods. Recommended to only tag devices with 1 kilobyte of data Please consider using your own Database to save more than 1 kilobyte of data. See: Internal Database & CRM | [optional] |
|
24
|
-
| **amount_spent** | **
|
24
|
+
| **amount_spent** | **Float** | Amount the user has spent in USD, up to two decimal places | [optional] |
|
25
25
|
| **created_at** | **Integer** | Unixtime when the player joined the game | [optional] |
|
26
26
|
| **playtime** | **Integer** | Seconds player was running your app. | [optional] |
|
27
27
|
| **badge_count** | **Integer** | Current iOS badge count displayed on the app icon NOTE: Not supported for apps created after June 2018, since badge count for apps created after this date are handled on the client. | [optional] |
|
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **include_player_ids** | **Array<String>** | Specific playerids to send your notification to. _Does not require API Auth Key. Do not combine with other targeting parameters. Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call | [optional] |
|
8
|
-
| **include_external_user_ids** | **Array<String>** | Target specific devices by custom user IDs assigned via API. Not compatible with any other targeting parameters Example: [
|
8
|
+
| **include_external_user_ids** | **Array<String>** | Target specific devices by custom user IDs assigned via API. Not compatible with any other targeting parameters Example: [\"custom-id-assigned-by-api\"] REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call. Note: If targeting push, email, or sms subscribers with same ids, use with channel_for_external_user_ids to indicate you are sending a push or email or sms. | [optional] |
|
9
9
|
| **include_email_tokens** | **Array<String>** | Recommended for Sending Emails - Target specific email addresses. If an email does not correspond to an existing user, a new user will be created. Example: nick@catfac.ts Limit of 2,000 entries per REST API call | [optional] |
|
10
10
|
| **include_phone_numbers** | **Array<String>** | Recommended for Sending SMS - Target specific phone numbers. The phone number should be in the E.164 format. Phone number should be an existing subscriber on OneSignal. Refer our docs to learn how to add phone numbers to OneSignal. Example phone number: +1999999999 Limit of 2,000 entries per REST API call | [optional] |
|
11
11
|
| **include_ios_tokens** | **Array<String>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using iOS device tokens. Warning: Only works with Production tokens. All non-alphanumeric characters must be removed from each token. If a token does not correspond to an existing user, a new user will be created. Example: ce777617da7f548fe7a9ab6febb56cf39fba6d38203... Limit of 2,000 entries per REST API call | [optional] |
|
@@ -14,6 +14,8 @@
|
|
14
14
|
| **include_chrome_reg_ids** | **Array<String>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome App registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional] |
|
15
15
|
| **include_chrome_web_reg_ids** | **Array<String>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Chrome Web Push registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional] |
|
16
16
|
| **include_android_reg_ids** | **Array<String>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Android device registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: APA91bEeiUeSukAAUdnw3O2RB45FWlSpgJ7Ji_... Limit of 2,000 entries per REST API call | [optional] |
|
17
|
+
| **include_aliases** | [**PlayerNotificationTargetIncludeAliases**](PlayerNotificationTargetIncludeAliases.md) | | [optional] |
|
18
|
+
| **target_channel** | **String** | | [optional] |
|
17
19
|
|
18
20
|
## Example
|
19
21
|
|
@@ -30,7 +32,9 @@ instance = OneSignal::PlayerNotificationTarget.new(
|
|
30
32
|
include_amazon_reg_ids: null,
|
31
33
|
include_chrome_reg_ids: null,
|
32
34
|
include_chrome_web_reg_ids: null,
|
33
|
-
include_android_reg_ids: null
|
35
|
+
include_android_reg_ids: null,
|
36
|
+
include_aliases: null,
|
37
|
+
target_channel: null
|
34
38
|
)
|
35
39
|
```
|
36
40
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OneSignal::PlayerNotificationTargetIncludeAliases
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **alias_label** | **Array<String>** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'onesignal'
|
13
|
+
|
14
|
+
instance = OneSignal::PlayerNotificationTargetIncludeAliases.new(
|
15
|
+
alias_label: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# OneSignal::PropertiesDeltas
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **session_time** | **Float** | | [optional] |
|
8
|
+
| **session_count** | **Float** | | [optional] |
|
9
|
+
| **purchases** | [**Array<Purchase>**](Purchase.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'onesignal'
|
15
|
+
|
16
|
+
instance = OneSignal::PropertiesDeltas.new(
|
17
|
+
session_time: null,
|
18
|
+
session_count: null,
|
19
|
+
purchases: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# OneSignal::PropertiesObject
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **tags** | **Hash<String, Object>** | | [optional] |
|
8
|
+
| **language** | **String** | | [optional] |
|
9
|
+
| **timezone_id** | **String** | | [optional] |
|
10
|
+
| **lat** | **Float** | | [optional] |
|
11
|
+
| **long** | **Float** | | [optional] |
|
12
|
+
| **country** | **String** | | [optional] |
|
13
|
+
| **first_active** | **Float** | | [optional] |
|
14
|
+
| **last_active** | **Float** | | [optional] |
|
15
|
+
| **amount_spent** | **Float** | | [optional] |
|
16
|
+
| **purchases** | [**Array<Purchase>**](Purchase.md) | | [optional] |
|
17
|
+
| **ip** | **String** | | [optional] |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'onesignal'
|
23
|
+
|
24
|
+
instance = OneSignal::PropertiesObject.new(
|
25
|
+
tags: null,
|
26
|
+
language: null,
|
27
|
+
timezone_id: null,
|
28
|
+
lat: null,
|
29
|
+
long: null,
|
30
|
+
country: null,
|
31
|
+
first_active: null,
|
32
|
+
last_active: null,
|
33
|
+
amount_spent: null,
|
34
|
+
purchases: null,
|
35
|
+
ip: null
|
36
|
+
)
|
37
|
+
```
|
38
|
+
|
data/docs/Purchase.md
CHANGED
@@ -5,8 +5,9 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **sku** | **String** | The unique identifier of the purchased item. | |
|
8
|
-
| **amount** | **
|
8
|
+
| **amount** | **String** | The amount, in USD, spent purchasing the item. | |
|
9
9
|
| **iso** | **String** | The 3-letter ISO 4217 currency code. Required for correct storage and conversion of amount. | |
|
10
|
+
| **count** | **Float** | | [optional] |
|
10
11
|
|
11
12
|
## Example
|
12
13
|
|
@@ -16,7 +17,8 @@ require 'onesignal'
|
|
16
17
|
instance = OneSignal::Purchase.new(
|
17
18
|
sku: null,
|
18
19
|
amount: null,
|
19
|
-
iso: null
|
20
|
+
iso: null,
|
21
|
+
count: null
|
20
22
|
)
|
21
23
|
```
|
22
24
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OneSignal::RateLimiterError
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **errors** | [**Array<GenericErrorErrorsInner>**](GenericErrorErrorsInner.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'onesignal'
|
13
|
+
|
14
|
+
instance = OneSignal::RateLimiterError.new(
|
15
|
+
errors: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/StringMap.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **en** | **String** | Text in English. Will be used as a fallback |
|
7
|
+
| **en** | **String** | Text in English. Will be used as a fallback | [optional] |
|
8
8
|
| **ar** | **String** | Text in Arabic. | [optional] |
|
9
9
|
| **bs** | **String** | Text in Bosnian. | [optional] |
|
10
10
|
| **bg** | **String** | Text in Bulgarian. | [optional] |
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# OneSignal::SubscriptionObject
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | [optional] |
|
8
|
+
| **type** | **String** | | [optional] |
|
9
|
+
| **token** | **String** | | [optional] |
|
10
|
+
| **enabled** | **Boolean** | | [optional] |
|
11
|
+
| **notification_types** | **Float** | | [optional] |
|
12
|
+
| **session_time** | **Float** | | [optional] |
|
13
|
+
| **session_count** | **Float** | | [optional] |
|
14
|
+
| **sdk** | **String** | | [optional] |
|
15
|
+
| **device_model** | **String** | | [optional] |
|
16
|
+
| **device_os** | **String** | | [optional] |
|
17
|
+
| **rooted** | **Boolean** | | [optional] |
|
18
|
+
| **test_type** | **Float** | | [optional] |
|
19
|
+
| **app_version** | **String** | | [optional] |
|
20
|
+
| **net_type** | **Float** | | [optional] |
|
21
|
+
| **carrier** | **String** | | [optional] |
|
22
|
+
| **web_auth** | **String** | | [optional] |
|
23
|
+
| **web_p256** | **String** | | [optional] |
|
24
|
+
|
25
|
+
## Example
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
require 'onesignal'
|
29
|
+
|
30
|
+
instance = OneSignal::SubscriptionObject.new(
|
31
|
+
id: null,
|
32
|
+
type: null,
|
33
|
+
token: null,
|
34
|
+
enabled: null,
|
35
|
+
notification_types: null,
|
36
|
+
session_time: null,
|
37
|
+
session_count: null,
|
38
|
+
sdk: null,
|
39
|
+
device_model: null,
|
40
|
+
device_os: null,
|
41
|
+
rooted: null,
|
42
|
+
test_type: null,
|
43
|
+
app_version: null,
|
44
|
+
net_type: null,
|
45
|
+
carrier: null,
|
46
|
+
web_auth: null,
|
47
|
+
web_p256: null
|
48
|
+
)
|
49
|
+
```
|
50
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OneSignal::TransferSubscriptionRequestBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **identity** | **Hash<String, Object>** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'onesignal'
|
13
|
+
|
14
|
+
instance = OneSignal::TransferSubscriptionRequestBody.new(
|
15
|
+
identity: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# OneSignal::UpdateLiveActivityRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | Type of live activity | |
|
8
|
+
| **event** | **String** | | |
|
9
|
+
| **event_updates** | **Object** | | |
|
10
|
+
| **dismiss_at** | **Float** | Timestamp; only allowed if event is \"end\" | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'onesignal'
|
16
|
+
|
17
|
+
instance = OneSignal::UpdateLiveActivityRequest.new(
|
18
|
+
name: null,
|
19
|
+
event: null,
|
20
|
+
event_updates: null,
|
21
|
+
dismiss_at: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# OneSignal::UpdateLiveActivitySuccessResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **notification_id** | **String** | | [optional] |
|
8
|
+
| **errors** | [**Notification200Errors**](Notification200Errors.md) | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'onesignal'
|
14
|
+
|
15
|
+
instance = OneSignal::UpdateLiveActivitySuccessResponse.new(
|
16
|
+
notification_id: null,
|
17
|
+
errors: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OneSignal::UpdatePlayerSuccessResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'onesignal'
|
13
|
+
|
14
|
+
instance = OneSignal::UpdatePlayerSuccessResponse.new(
|
15
|
+
success: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OneSignal::UpdatePlayerTagsSuccessResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **success** | **Boolean** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'onesignal'
|
13
|
+
|
14
|
+
instance = OneSignal::UpdatePlayerTagsSuccessResponse.new(
|
15
|
+
success: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OneSignal::UpdateSubscriptionRequestBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **subscription** | [**SubscriptionObject**](SubscriptionObject.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'onesignal'
|
13
|
+
|
14
|
+
instance = OneSignal::UpdateSubscriptionRequestBody.new(
|
15
|
+
subscription: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# OneSignal::UpdateUserRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **properties** | [**PropertiesObject**](PropertiesObject.md) | | [optional] |
|
8
|
+
| **refresh_device_metadata** | **Boolean** | | [optional][default to false] |
|
9
|
+
| **deltas** | [**PropertiesDeltas**](PropertiesDeltas.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'onesignal'
|
15
|
+
|
16
|
+
instance = OneSignal::UpdateUserRequest.new(
|
17
|
+
properties: null,
|
18
|
+
refresh_device_metadata: null,
|
19
|
+
deltas: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/User.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# OneSignal::User
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **properties** | [**PropertiesObject**](PropertiesObject.md) | | [optional] |
|
8
|
+
| **identity** | **Hash<String, Object>** | | [optional] |
|
9
|
+
| **subscriptions** | [**Array<SubscriptionObject>**](SubscriptionObject.md) | | [optional] |
|
10
|
+
| **subscription_options** | [**UserSubscriptionOptions**](UserSubscriptionOptions.md) | | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'onesignal'
|
16
|
+
|
17
|
+
instance = OneSignal::User.new(
|
18
|
+
properties: null,
|
19
|
+
identity: null,
|
20
|
+
subscriptions: null,
|
21
|
+
subscription_options: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OneSignal::UserIdentityRequestBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **identity** | **Hash<String, Object>** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'onesignal'
|
13
|
+
|
14
|
+
instance = OneSignal::UserIdentityRequestBody.new(
|
15
|
+
identity: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OneSignal::UserIdentityResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **identity** | **Hash<String, Object>** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'onesignal'
|
13
|
+
|
14
|
+
instance = OneSignal::UserIdentityResponse.new(
|
15
|
+
identity: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# OneSignal::UserSubscriptionOptions
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **retain_previous_owner** | **Boolean** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'onesignal'
|
13
|
+
|
14
|
+
instance = OneSignal::UserSubscriptionOptions.new(
|
15
|
+
retain_previous_owner: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|