onesignal 2.2.1 → 5.1.0.pre.beta1
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/README.md +42 -67
- data/docs/BasicNotification.md +18 -18
- data/docs/BasicNotificationAllOf.md +9 -7
- data/docs/CreateNotificationSuccessResponse.md +1 -3
- data/docs/DefaultApi.md +364 -948
- data/docs/{ExportPlayersRequestBody.md → ExportSubscriptionsRequestBody.md} +2 -2
- data/docs/{ExportPlayersSuccessResponse.md → ExportSubscriptionsSuccessResponse.md} +2 -2
- data/docs/Filter.md +10 -2
- data/docs/{Notification200Errors.md → FilterExpression.md} +9 -9
- data/docs/GenericError.md +6 -2
- data/docs/{DeletePlayerSuccessResponse.md → GenericSuccessBoolResponse.md} +2 -2
- data/docs/{GetNotificationRequestBody.md → GetNotificationHistoryRequestBody.md} +2 -2
- data/docs/GetSegmentsSuccessResponse.md +24 -0
- data/docs/{StringMap.md → LanguageStringMap.md} +2 -2
- data/docs/Notification.md +18 -18
- data/docs/NotificationTarget.md +9 -11
- data/docs/NotificationWithMeta.md +18 -18
- data/docs/{InlineResponse202.md → PropertiesBody.md} +2 -2
- data/docs/PropertiesDeltas.md +2 -2
- data/docs/PropertiesObject.md +2 -2
- data/docs/Purchase.md +1 -1
- data/docs/RateLimitError.md +20 -0
- data/docs/Segment.md +1 -1
- data/docs/SegmentData.md +30 -0
- data/docs/{SubscriptionObject.md → Subscription.md} +6 -6
- data/docs/SubscriptionBody.md +18 -0
- data/docs/SubscriptionNotificationTarget.md +38 -0
- data/docs/TransferSubscriptionRequestBody.md +1 -1
- data/docs/UpdateLiveActivityRequest.md +14 -4
- data/docs/UpdateLiveActivitySuccessResponse.md +2 -4
- data/docs/User.md +3 -5
- data/docs/{InlineResponse200.md → UserIdentityBody.md} +3 -3
- data/docs/WebButton.md +24 -0
- data/lib/onesignal/api/default_api.rb +382 -890
- data/lib/onesignal/api_client.rb +2 -2
- data/lib/onesignal/api_error.rb +1 -1
- data/lib/onesignal/configuration.rb +5 -5
- data/lib/onesignal/models/app.rb +1 -1
- data/lib/onesignal/models/basic_notification.rb +49 -47
- data/lib/onesignal/models/basic_notification_all_of.rb +29 -17
- data/lib/onesignal/models/basic_notification_all_of_android_background_layout.rb +1 -1
- data/lib/onesignal/models/button.rb +1 -1
- data/lib/onesignal/models/create_notification_success_response.rb +5 -13
- data/lib/onesignal/models/create_segment_conflict_response.rb +1 -1
- data/lib/onesignal/models/create_segment_success_response.rb +1 -1
- data/lib/onesignal/models/create_user_conflict_response.rb +1 -1
- data/lib/onesignal/models/create_user_conflict_response_errors_inner.rb +1 -1
- data/lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb +1 -1
- data/lib/onesignal/models/delivery_data.rb +1 -1
- data/lib/onesignal/models/export_events_success_response.rb +1 -1
- data/lib/onesignal/models/{export_players_request_body.rb → export_subscriptions_request_body.rb} +4 -4
- data/lib/onesignal/models/{export_players_success_response.rb → export_subscriptions_success_response.rb} +4 -4
- data/lib/onesignal/models/filter.rb +44 -14
- data/lib/onesignal/models/{notification200_errors.rb → filter_expression.rb} +4 -4
- data/lib/onesignal/models/generic_error.rb +26 -8
- data/lib/onesignal/models/{update_player_success_response.rb → generic_success_bool_response.rb} +4 -4
- data/lib/onesignal/models/{get_notification_request_body.rb → get_notification_history_request_body.rb} +4 -4
- data/lib/onesignal/models/{player_slice.rb → get_segments_success_response.rb} +16 -12
- data/lib/onesignal/models/{string_map.rb → language_string_map.rb} +4 -4
- data/lib/onesignal/models/notification.rb +49 -47
- data/lib/onesignal/models/notification_all_of.rb +1 -1
- data/lib/onesignal/models/notification_history_success_response.rb +1 -1
- data/lib/onesignal/models/notification_slice.rb +1 -1
- data/lib/onesignal/models/notification_target.rb +24 -34
- data/lib/onesignal/models/notification_with_meta.rb +49 -47
- data/lib/onesignal/models/notification_with_meta_all_of.rb +1 -1
- data/lib/onesignal/models/operator.rb +1 -1
- data/lib/onesignal/models/outcome_data.rb +1 -1
- data/lib/onesignal/models/outcomes_data.rb +1 -1
- data/lib/onesignal/models/platform_delivery_data.rb +1 -1
- data/lib/onesignal/models/platform_delivery_data_email_all_of.rb +1 -1
- data/lib/onesignal/models/platform_delivery_data_sms_all_of.rb +1 -1
- data/lib/onesignal/models/{inline_response202.rb → properties_body.rb} +4 -4
- data/lib/onesignal/models/properties_deltas.rb +3 -3
- data/lib/onesignal/models/properties_object.rb +3 -3
- data/lib/onesignal/models/purchase.rb +2 -2
- data/lib/onesignal/models/{rate_limiter_error.rb → rate_limit_error.rb} +17 -8
- data/lib/onesignal/models/segment.rb +2 -2
- data/lib/onesignal/models/{begin_live_activity_request.rb → segment_data.rb} +69 -27
- data/lib/onesignal/models/segment_notification_target.rb +1 -1
- data/lib/onesignal/models/{subscription_object.rb → subscription.rb} +8 -8
- data/lib/onesignal/models/{inline_response201.rb → subscription_body.rb} +5 -5
- data/lib/onesignal/models/{player_notification_target.rb → subscription_notification_target.rb} +25 -35
- data/lib/onesignal/models/transfer_subscription_request_body.rb +26 -2
- data/lib/onesignal/models/update_live_activity_request.rb +59 -22
- data/lib/onesignal/models/update_live_activity_success_response.rb +8 -17
- data/lib/onesignal/models/update_user_request.rb +1 -1
- data/lib/onesignal/models/user.rb +6 -15
- data/lib/onesignal/models/{inline_response200.rb → user_identity_body.rb} +5 -5
- data/lib/onesignal/models/{create_player_success_response.rb → web_button.rb} +40 -17
- data/lib/onesignal/version.rb +2 -2
- data/lib/onesignal.rb +16 -34
- data/onesignal.gemspec +1 -1
- data/spec/api/default_api_spec.rb +82 -174
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/app_spec.rb +1 -1
- data/spec/models/basic_notification_all_of_android_background_layout_spec.rb +1 -1
- data/spec/models/basic_notification_all_of_spec.rb +13 -7
- data/spec/models/basic_notification_spec.rb +14 -14
- data/spec/models/button_spec.rb +1 -1
- data/spec/models/create_notification_success_response_spec.rb +1 -7
- data/spec/models/create_segment_conflict_response_spec.rb +1 -1
- data/spec/models/create_segment_success_response_spec.rb +1 -1
- data/spec/models/create_user_conflict_response_errors_inner_spec.rb +1 -1
- data/spec/models/create_user_conflict_response_errors_items_meta_spec.rb +1 -1
- data/spec/models/create_user_conflict_response_spec.rb +1 -1
- data/spec/models/delivery_data_spec.rb +1 -1
- data/spec/models/export_events_success_response_spec.rb +1 -1
- data/spec/models/{export_players_request_body_spec.rb → export_subscriptions_request_body_spec.rb} +7 -7
- data/spec/models/{export_players_success_response_spec.rb → export_subscriptions_success_response_spec.rb} +7 -7
- data/spec/models/{notification200_errors_spec.rb → filter_expression_spec.rb} +3 -3
- data/spec/models/filter_spec.rb +25 -1
- data/spec/models/generic_error_spec.rb +13 -1
- data/spec/models/{delete_player_success_response_spec.rb → generic_success_bool_response_spec.rb} +7 -7
- data/spec/models/{get_notification_request_body_spec.rb → get_notification_history_request_body_spec.rb} +7 -7
- data/spec/models/{player_slice_spec.rb → get_segments_success_response_spec.rb} +8 -8
- data/spec/models/{string_map_spec.rb → language_string_map_spec.rb} +7 -7
- data/spec/models/notification_all_of_spec.rb +1 -1
- data/spec/models/notification_history_success_response_spec.rb +1 -1
- data/spec/models/notification_slice_spec.rb +1 -1
- data/spec/models/notification_spec.rb +14 -14
- data/spec/models/notification_target_spec.rb +2 -8
- data/spec/models/notification_with_meta_all_of_spec.rb +1 -1
- data/spec/models/notification_with_meta_spec.rb +14 -14
- data/spec/models/operator_spec.rb +1 -1
- data/spec/models/outcome_data_spec.rb +1 -1
- data/spec/models/outcomes_data_spec.rb +1 -1
- data/spec/models/platform_delivery_data_email_all_of_spec.rb +1 -1
- data/spec/models/platform_delivery_data_sms_all_of_spec.rb +1 -1
- data/spec/models/platform_delivery_data_spec.rb +1 -1
- data/spec/models/{inline_response202_spec.rb → properties_body_spec.rb} +7 -7
- data/spec/models/properties_deltas_spec.rb +1 -1
- data/spec/models/properties_object_spec.rb +1 -1
- data/spec/models/purchase_spec.rb +1 -1
- data/spec/models/{generic_error_errors_inner_spec.rb → rate_limit_error_spec.rb} +9 -9
- data/spec/models/{filter_expressions_spec.rb → segment_data_spec.rb} +24 -20
- data/spec/models/segment_notification_target_spec.rb +1 -1
- data/spec/models/segment_spec.rb +1 -1
- data/spec/models/{inline_response201_spec.rb → subscription_body_spec.rb} +7 -7
- data/spec/models/{player_notification_target_spec.rb → subscription_notification_target_spec.rb} +8 -14
- data/spec/models/{subscription_object_spec.rb → subscription_spec.rb} +7 -7
- data/spec/models/transfer_subscription_request_body_spec.rb +1 -1
- data/spec/models/update_live_activity_request_spec.rb +32 -6
- data/spec/models/update_live_activity_success_response_spec.rb +2 -8
- data/spec/models/update_user_request_spec.rb +1 -1
- data/spec/models/{user_identity_response_spec.rb → user_identity_body_spec.rb} +7 -7
- data/spec/models/user_spec.rb +1 -7
- data/spec/models/{create_player_success_response_spec.rb → web_button_spec.rb} +21 -9
- data/spec/spec_helper.rb +1 -1
- metadata +61 -131
- data/docs/BeginLiveActivityRequest.md +0 -20
- data/docs/CancelNotificationSuccessResponse.md +0 -18
- data/docs/CreatePlayerSuccessResponse.md +0 -20
- data/docs/CreateSubscriptionRequestBody.md +0 -20
- data/docs/DeletePlayerNotFoundResponse.md +0 -18
- data/docs/DeleteSegmentNotFoundResponse.md +0 -18
- data/docs/DeleteSegmentSuccessResponse.md +0 -18
- data/docs/FilterExpressions.md +0 -26
- data/docs/InlineResponse2003.md +0 -18
- data/docs/InlineResponse201.md +0 -18
- data/docs/InvalidIdentifierError.md +0 -20
- data/docs/Player.md +0 -70
- data/docs/PlayerNotificationTarget.md +0 -40
- data/docs/PlayerNotificationTargetIncludeAliases.md +0 -18
- data/docs/PlayerSlice.md +0 -24
- data/docs/UpdatePlayerSuccessResponse.md +0 -18
- data/docs/UpdatePlayerTagsRequestBody.md +0 -18
- data/docs/UpdatePlayerTagsSuccessResponse.md +0 -18
- data/docs/UpdateSubscriptionRequestBody.md +0 -18
- data/docs/UserIdentityRequestBody.md +0 -18
- data/docs/UserIdentityResponse.md +0 -18
- data/docs/UserSubscriptionOptions.md +0 -18
- data/lib/onesignal/models/cancel_notification_success_response.rb +0 -219
- data/lib/onesignal/models/create_subscription_request_body.rb +0 -228
- data/lib/onesignal/models/delete_player_not_found_response.rb +0 -219
- data/lib/onesignal/models/delete_player_success_response.rb +0 -219
- data/lib/onesignal/models/delete_segment_not_found_response.rb +0 -219
- data/lib/onesignal/models/delete_segment_success_response.rb +0 -219
- data/lib/onesignal/models/filter_expressions.rb +0 -336
- data/lib/onesignal/models/generic_error_errors_inner.rb +0 -228
- data/lib/onesignal/models/inline_response2003.rb +0 -221
- data/lib/onesignal/models/invalid_identifier_error.rb +0 -234
- data/lib/onesignal/models/player.rb +0 -494
- data/lib/onesignal/models/player_notification_target_include_aliases.rb +0 -221
- data/lib/onesignal/models/update_player_tags_request_body.rb +0 -220
- data/lib/onesignal/models/update_player_tags_success_response.rb +0 -219
- data/lib/onesignal/models/update_subscription_request_body.rb +0 -219
- data/lib/onesignal/models/user_identity_request_body.rb +0 -221
- data/lib/onesignal/models/user_identity_response.rb +0 -221
- data/lib/onesignal/models/user_subscription_options.rb +0 -219
- data/spec/models/begin_live_activity_request_spec.rb +0 -40
- data/spec/models/cancel_notification_success_response_spec.rb +0 -34
- data/spec/models/create_subscription_request_body_spec.rb +0 -40
- data/spec/models/delete_player_not_found_response_spec.rb +0 -34
- data/spec/models/delete_segment_not_found_response_spec.rb +0 -34
- data/spec/models/delete_segment_success_response_spec.rb +0 -34
- data/spec/models/inline_response2003_spec.rb +0 -34
- data/spec/models/inline_response200_spec.rb +0 -34
- data/spec/models/invalid_identifier_error_spec.rb +0 -40
- data/spec/models/player_notification_target_include_aliases_spec.rb +0 -34
- data/spec/models/player_spec.rb +0 -190
- data/spec/models/rate_limiter_error_spec.rb +0 -34
- data/spec/models/update_player_success_response_spec.rb +0 -34
- data/spec/models/update_player_tags_request_body_spec.rb +0 -34
- data/spec/models/update_player_tags_success_response_spec.rb +0 -34
- data/spec/models/update_subscription_request_body_spec.rb +0 -34
- data/spec/models/user_identity_request_body_spec.rb +0 -34
- data/spec/models/user_subscription_options_spec.rb +0 -34
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: onesignal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 5.1.0.pre.beta1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OneSignal
|
|
@@ -66,38 +66,27 @@ files:
|
|
|
66
66
|
- docs/BasicNotification.md
|
|
67
67
|
- docs/BasicNotificationAllOf.md
|
|
68
68
|
- docs/BasicNotificationAllOfAndroidBackgroundLayout.md
|
|
69
|
-
- docs/BeginLiveActivityRequest.md
|
|
70
69
|
- docs/Button.md
|
|
71
|
-
- docs/CancelNotificationSuccessResponse.md
|
|
72
70
|
- docs/CreateNotificationSuccessResponse.md
|
|
73
|
-
- docs/CreatePlayerSuccessResponse.md
|
|
74
71
|
- docs/CreateSegmentConflictResponse.md
|
|
75
72
|
- docs/CreateSegmentSuccessResponse.md
|
|
76
|
-
- docs/CreateSubscriptionRequestBody.md
|
|
77
73
|
- docs/CreateUserConflictResponse.md
|
|
78
74
|
- docs/CreateUserConflictResponseErrorsInner.md
|
|
79
75
|
- docs/CreateUserConflictResponseErrorsItemsMeta.md
|
|
80
76
|
- docs/DefaultApi.md
|
|
81
|
-
- docs/DeletePlayerNotFoundResponse.md
|
|
82
|
-
- docs/DeletePlayerSuccessResponse.md
|
|
83
|
-
- docs/DeleteSegmentNotFoundResponse.md
|
|
84
|
-
- docs/DeleteSegmentSuccessResponse.md
|
|
85
77
|
- docs/DeliveryData.md
|
|
86
78
|
- docs/ExportEventsSuccessResponse.md
|
|
87
|
-
- docs/
|
|
88
|
-
- docs/
|
|
79
|
+
- docs/ExportSubscriptionsRequestBody.md
|
|
80
|
+
- docs/ExportSubscriptionsSuccessResponse.md
|
|
89
81
|
- docs/Filter.md
|
|
90
|
-
- docs/
|
|
82
|
+
- docs/FilterExpression.md
|
|
91
83
|
- docs/GenericError.md
|
|
92
84
|
- docs/GenericErrorErrorsInner.md
|
|
93
|
-
- docs/
|
|
94
|
-
- docs/
|
|
95
|
-
- docs/
|
|
96
|
-
- docs/
|
|
97
|
-
- docs/InlineResponse202.md
|
|
98
|
-
- docs/InvalidIdentifierError.md
|
|
85
|
+
- docs/GenericSuccessBoolResponse.md
|
|
86
|
+
- docs/GetNotificationHistoryRequestBody.md
|
|
87
|
+
- docs/GetSegmentsSuccessResponse.md
|
|
88
|
+
- docs/LanguageStringMap.md
|
|
99
89
|
- docs/Notification.md
|
|
100
|
-
- docs/Notification200Errors.md
|
|
101
90
|
- docs/NotificationAllOf.md
|
|
102
91
|
- docs/NotificationHistorySuccessResponse.md
|
|
103
92
|
- docs/NotificationSlice.md
|
|
@@ -110,30 +99,25 @@ files:
|
|
|
110
99
|
- docs/PlatformDeliveryData.md
|
|
111
100
|
- docs/PlatformDeliveryDataEmailAllOf.md
|
|
112
101
|
- docs/PlatformDeliveryDataSmsAllOf.md
|
|
113
|
-
- docs/
|
|
114
|
-
- docs/PlayerNotificationTarget.md
|
|
115
|
-
- docs/PlayerNotificationTargetIncludeAliases.md
|
|
116
|
-
- docs/PlayerSlice.md
|
|
102
|
+
- docs/PropertiesBody.md
|
|
117
103
|
- docs/PropertiesDeltas.md
|
|
118
104
|
- docs/PropertiesObject.md
|
|
119
105
|
- docs/Purchase.md
|
|
106
|
+
- docs/RateLimitError.md
|
|
120
107
|
- docs/RateLimiterError.md
|
|
121
108
|
- docs/Segment.md
|
|
109
|
+
- docs/SegmentData.md
|
|
122
110
|
- docs/SegmentNotificationTarget.md
|
|
123
|
-
- docs/
|
|
124
|
-
- docs/
|
|
111
|
+
- docs/Subscription.md
|
|
112
|
+
- docs/SubscriptionBody.md
|
|
113
|
+
- docs/SubscriptionNotificationTarget.md
|
|
125
114
|
- docs/TransferSubscriptionRequestBody.md
|
|
126
115
|
- docs/UpdateLiveActivityRequest.md
|
|
127
116
|
- docs/UpdateLiveActivitySuccessResponse.md
|
|
128
|
-
- docs/UpdatePlayerSuccessResponse.md
|
|
129
|
-
- docs/UpdatePlayerTagsRequestBody.md
|
|
130
|
-
- docs/UpdatePlayerTagsSuccessResponse.md
|
|
131
|
-
- docs/UpdateSubscriptionRequestBody.md
|
|
132
117
|
- docs/UpdateUserRequest.md
|
|
133
118
|
- docs/User.md
|
|
134
|
-
- docs/
|
|
135
|
-
- docs/
|
|
136
|
-
- docs/UserSubscriptionOptions.md
|
|
119
|
+
- docs/UserIdentityBody.md
|
|
120
|
+
- docs/WebButton.md
|
|
137
121
|
- lib/onesignal.rb
|
|
138
122
|
- lib/onesignal/api/default_api.rb
|
|
139
123
|
- lib/onesignal/api_client.rb
|
|
@@ -143,37 +127,25 @@ files:
|
|
|
143
127
|
- lib/onesignal/models/basic_notification.rb
|
|
144
128
|
- lib/onesignal/models/basic_notification_all_of.rb
|
|
145
129
|
- lib/onesignal/models/basic_notification_all_of_android_background_layout.rb
|
|
146
|
-
- lib/onesignal/models/begin_live_activity_request.rb
|
|
147
130
|
- lib/onesignal/models/button.rb
|
|
148
|
-
- lib/onesignal/models/cancel_notification_success_response.rb
|
|
149
131
|
- lib/onesignal/models/create_notification_success_response.rb
|
|
150
|
-
- lib/onesignal/models/create_player_success_response.rb
|
|
151
132
|
- lib/onesignal/models/create_segment_conflict_response.rb
|
|
152
133
|
- lib/onesignal/models/create_segment_success_response.rb
|
|
153
|
-
- lib/onesignal/models/create_subscription_request_body.rb
|
|
154
134
|
- lib/onesignal/models/create_user_conflict_response.rb
|
|
155
135
|
- lib/onesignal/models/create_user_conflict_response_errors_inner.rb
|
|
156
136
|
- lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb
|
|
157
|
-
- lib/onesignal/models/delete_player_not_found_response.rb
|
|
158
|
-
- lib/onesignal/models/delete_player_success_response.rb
|
|
159
|
-
- lib/onesignal/models/delete_segment_not_found_response.rb
|
|
160
|
-
- lib/onesignal/models/delete_segment_success_response.rb
|
|
161
137
|
- lib/onesignal/models/delivery_data.rb
|
|
162
138
|
- lib/onesignal/models/export_events_success_response.rb
|
|
163
|
-
- lib/onesignal/models/
|
|
164
|
-
- lib/onesignal/models/
|
|
139
|
+
- lib/onesignal/models/export_subscriptions_request_body.rb
|
|
140
|
+
- lib/onesignal/models/export_subscriptions_success_response.rb
|
|
165
141
|
- lib/onesignal/models/filter.rb
|
|
166
|
-
- lib/onesignal/models/
|
|
142
|
+
- lib/onesignal/models/filter_expression.rb
|
|
167
143
|
- lib/onesignal/models/generic_error.rb
|
|
168
|
-
- lib/onesignal/models/
|
|
169
|
-
- lib/onesignal/models/
|
|
170
|
-
- lib/onesignal/models/
|
|
171
|
-
- lib/onesignal/models/
|
|
172
|
-
- lib/onesignal/models/inline_response201.rb
|
|
173
|
-
- lib/onesignal/models/inline_response202.rb
|
|
174
|
-
- lib/onesignal/models/invalid_identifier_error.rb
|
|
144
|
+
- lib/onesignal/models/generic_success_bool_response.rb
|
|
145
|
+
- lib/onesignal/models/get_notification_history_request_body.rb
|
|
146
|
+
- lib/onesignal/models/get_segments_success_response.rb
|
|
147
|
+
- lib/onesignal/models/language_string_map.rb
|
|
175
148
|
- lib/onesignal/models/notification.rb
|
|
176
|
-
- lib/onesignal/models/notification200_errors.rb
|
|
177
149
|
- lib/onesignal/models/notification_all_of.rb
|
|
178
150
|
- lib/onesignal/models/notification_history_success_response.rb
|
|
179
151
|
- lib/onesignal/models/notification_slice.rb
|
|
@@ -186,30 +158,24 @@ files:
|
|
|
186
158
|
- lib/onesignal/models/platform_delivery_data.rb
|
|
187
159
|
- lib/onesignal/models/platform_delivery_data_email_all_of.rb
|
|
188
160
|
- lib/onesignal/models/platform_delivery_data_sms_all_of.rb
|
|
189
|
-
- lib/onesignal/models/
|
|
190
|
-
- lib/onesignal/models/player_notification_target.rb
|
|
191
|
-
- lib/onesignal/models/player_notification_target_include_aliases.rb
|
|
192
|
-
- lib/onesignal/models/player_slice.rb
|
|
161
|
+
- lib/onesignal/models/properties_body.rb
|
|
193
162
|
- lib/onesignal/models/properties_deltas.rb
|
|
194
163
|
- lib/onesignal/models/properties_object.rb
|
|
195
164
|
- lib/onesignal/models/purchase.rb
|
|
196
|
-
- lib/onesignal/models/
|
|
165
|
+
- lib/onesignal/models/rate_limit_error.rb
|
|
197
166
|
- lib/onesignal/models/segment.rb
|
|
167
|
+
- lib/onesignal/models/segment_data.rb
|
|
198
168
|
- lib/onesignal/models/segment_notification_target.rb
|
|
199
|
-
- lib/onesignal/models/
|
|
200
|
-
- lib/onesignal/models/
|
|
169
|
+
- lib/onesignal/models/subscription.rb
|
|
170
|
+
- lib/onesignal/models/subscription_body.rb
|
|
171
|
+
- lib/onesignal/models/subscription_notification_target.rb
|
|
201
172
|
- lib/onesignal/models/transfer_subscription_request_body.rb
|
|
202
173
|
- lib/onesignal/models/update_live_activity_request.rb
|
|
203
174
|
- lib/onesignal/models/update_live_activity_success_response.rb
|
|
204
|
-
- lib/onesignal/models/update_player_success_response.rb
|
|
205
|
-
- lib/onesignal/models/update_player_tags_request_body.rb
|
|
206
|
-
- lib/onesignal/models/update_player_tags_success_response.rb
|
|
207
|
-
- lib/onesignal/models/update_subscription_request_body.rb
|
|
208
175
|
- lib/onesignal/models/update_user_request.rb
|
|
209
176
|
- lib/onesignal/models/user.rb
|
|
210
|
-
- lib/onesignal/models/
|
|
211
|
-
- lib/onesignal/models/
|
|
212
|
-
- lib/onesignal/models/user_subscription_options.rb
|
|
177
|
+
- lib/onesignal/models/user_identity_body.rb
|
|
178
|
+
- lib/onesignal/models/web_button.rb
|
|
213
179
|
- lib/onesignal/version.rb
|
|
214
180
|
- onesignal.gemspec
|
|
215
181
|
- spec/api/default_api_spec.rb
|
|
@@ -219,36 +185,24 @@ files:
|
|
|
219
185
|
- spec/models/basic_notification_all_of_android_background_layout_spec.rb
|
|
220
186
|
- spec/models/basic_notification_all_of_spec.rb
|
|
221
187
|
- spec/models/basic_notification_spec.rb
|
|
222
|
-
- spec/models/begin_live_activity_request_spec.rb
|
|
223
188
|
- spec/models/button_spec.rb
|
|
224
|
-
- spec/models/cancel_notification_success_response_spec.rb
|
|
225
189
|
- spec/models/create_notification_success_response_spec.rb
|
|
226
|
-
- spec/models/create_player_success_response_spec.rb
|
|
227
190
|
- spec/models/create_segment_conflict_response_spec.rb
|
|
228
191
|
- spec/models/create_segment_success_response_spec.rb
|
|
229
|
-
- spec/models/create_subscription_request_body_spec.rb
|
|
230
192
|
- spec/models/create_user_conflict_response_errors_inner_spec.rb
|
|
231
193
|
- spec/models/create_user_conflict_response_errors_items_meta_spec.rb
|
|
232
194
|
- spec/models/create_user_conflict_response_spec.rb
|
|
233
|
-
- spec/models/delete_player_not_found_response_spec.rb
|
|
234
|
-
- spec/models/delete_player_success_response_spec.rb
|
|
235
|
-
- spec/models/delete_segment_not_found_response_spec.rb
|
|
236
|
-
- spec/models/delete_segment_success_response_spec.rb
|
|
237
195
|
- spec/models/delivery_data_spec.rb
|
|
238
196
|
- spec/models/export_events_success_response_spec.rb
|
|
239
|
-
- spec/models/
|
|
240
|
-
- spec/models/
|
|
241
|
-
- spec/models/
|
|
197
|
+
- spec/models/export_subscriptions_request_body_spec.rb
|
|
198
|
+
- spec/models/export_subscriptions_success_response_spec.rb
|
|
199
|
+
- spec/models/filter_expression_spec.rb
|
|
242
200
|
- spec/models/filter_spec.rb
|
|
243
|
-
- spec/models/generic_error_errors_inner_spec.rb
|
|
244
201
|
- spec/models/generic_error_spec.rb
|
|
245
|
-
- spec/models/
|
|
246
|
-
- spec/models/
|
|
247
|
-
- spec/models/
|
|
248
|
-
- spec/models/
|
|
249
|
-
- spec/models/inline_response202_spec.rb
|
|
250
|
-
- spec/models/invalid_identifier_error_spec.rb
|
|
251
|
-
- spec/models/notification200_errors_spec.rb
|
|
202
|
+
- spec/models/generic_success_bool_response_spec.rb
|
|
203
|
+
- spec/models/get_notification_history_request_body_spec.rb
|
|
204
|
+
- spec/models/get_segments_success_response_spec.rb
|
|
205
|
+
- spec/models/language_string_map_spec.rb
|
|
252
206
|
- spec/models/notification_all_of_spec.rb
|
|
253
207
|
- spec/models/notification_history_success_response_spec.rb
|
|
254
208
|
- spec/models/notification_slice_spec.rb
|
|
@@ -262,30 +216,24 @@ files:
|
|
|
262
216
|
- spec/models/platform_delivery_data_email_all_of_spec.rb
|
|
263
217
|
- spec/models/platform_delivery_data_sms_all_of_spec.rb
|
|
264
218
|
- spec/models/platform_delivery_data_spec.rb
|
|
265
|
-
- spec/models/
|
|
266
|
-
- spec/models/player_notification_target_spec.rb
|
|
267
|
-
- spec/models/player_slice_spec.rb
|
|
268
|
-
- spec/models/player_spec.rb
|
|
219
|
+
- spec/models/properties_body_spec.rb
|
|
269
220
|
- spec/models/properties_deltas_spec.rb
|
|
270
221
|
- spec/models/properties_object_spec.rb
|
|
271
222
|
- spec/models/purchase_spec.rb
|
|
272
|
-
- spec/models/
|
|
223
|
+
- spec/models/rate_limit_error_spec.rb
|
|
224
|
+
- spec/models/segment_data_spec.rb
|
|
273
225
|
- spec/models/segment_notification_target_spec.rb
|
|
274
226
|
- spec/models/segment_spec.rb
|
|
275
|
-
- spec/models/
|
|
276
|
-
- spec/models/
|
|
227
|
+
- spec/models/subscription_body_spec.rb
|
|
228
|
+
- spec/models/subscription_notification_target_spec.rb
|
|
229
|
+
- spec/models/subscription_spec.rb
|
|
277
230
|
- spec/models/transfer_subscription_request_body_spec.rb
|
|
278
231
|
- spec/models/update_live_activity_request_spec.rb
|
|
279
232
|
- spec/models/update_live_activity_success_response_spec.rb
|
|
280
|
-
- spec/models/update_player_success_response_spec.rb
|
|
281
|
-
- spec/models/update_player_tags_request_body_spec.rb
|
|
282
|
-
- spec/models/update_player_tags_success_response_spec.rb
|
|
283
|
-
- spec/models/update_subscription_request_body_spec.rb
|
|
284
233
|
- spec/models/update_user_request_spec.rb
|
|
285
|
-
- spec/models/
|
|
286
|
-
- spec/models/user_identity_response_spec.rb
|
|
234
|
+
- spec/models/user_identity_body_spec.rb
|
|
287
235
|
- spec/models/user_spec.rb
|
|
288
|
-
- spec/models/
|
|
236
|
+
- spec/models/web_button_spec.rb
|
|
289
237
|
- spec/spec_helper.rb
|
|
290
238
|
homepage: https://onesignal.com/
|
|
291
239
|
licenses:
|
|
@@ -316,36 +264,24 @@ test_files:
|
|
|
316
264
|
- spec/models/basic_notification_all_of_android_background_layout_spec.rb
|
|
317
265
|
- spec/models/basic_notification_all_of_spec.rb
|
|
318
266
|
- spec/models/basic_notification_spec.rb
|
|
319
|
-
- spec/models/begin_live_activity_request_spec.rb
|
|
320
267
|
- spec/models/button_spec.rb
|
|
321
|
-
- spec/models/cancel_notification_success_response_spec.rb
|
|
322
268
|
- spec/models/create_notification_success_response_spec.rb
|
|
323
|
-
- spec/models/create_player_success_response_spec.rb
|
|
324
269
|
- spec/models/create_segment_conflict_response_spec.rb
|
|
325
270
|
- spec/models/create_segment_success_response_spec.rb
|
|
326
|
-
- spec/models/create_subscription_request_body_spec.rb
|
|
327
271
|
- spec/models/create_user_conflict_response_errors_inner_spec.rb
|
|
328
272
|
- spec/models/create_user_conflict_response_errors_items_meta_spec.rb
|
|
329
273
|
- spec/models/create_user_conflict_response_spec.rb
|
|
330
|
-
- spec/models/delete_player_not_found_response_spec.rb
|
|
331
|
-
- spec/models/delete_player_success_response_spec.rb
|
|
332
|
-
- spec/models/delete_segment_not_found_response_spec.rb
|
|
333
|
-
- spec/models/delete_segment_success_response_spec.rb
|
|
334
274
|
- spec/models/delivery_data_spec.rb
|
|
335
275
|
- spec/models/export_events_success_response_spec.rb
|
|
336
|
-
- spec/models/
|
|
337
|
-
- spec/models/
|
|
338
|
-
- spec/models/
|
|
276
|
+
- spec/models/export_subscriptions_request_body_spec.rb
|
|
277
|
+
- spec/models/export_subscriptions_success_response_spec.rb
|
|
278
|
+
- spec/models/filter_expression_spec.rb
|
|
339
279
|
- spec/models/filter_spec.rb
|
|
340
|
-
- spec/models/generic_error_errors_inner_spec.rb
|
|
341
280
|
- spec/models/generic_error_spec.rb
|
|
342
|
-
- spec/models/
|
|
343
|
-
- spec/models/
|
|
344
|
-
- spec/models/
|
|
345
|
-
- spec/models/
|
|
346
|
-
- spec/models/inline_response202_spec.rb
|
|
347
|
-
- spec/models/invalid_identifier_error_spec.rb
|
|
348
|
-
- spec/models/notification200_errors_spec.rb
|
|
281
|
+
- spec/models/generic_success_bool_response_spec.rb
|
|
282
|
+
- spec/models/get_notification_history_request_body_spec.rb
|
|
283
|
+
- spec/models/get_segments_success_response_spec.rb
|
|
284
|
+
- spec/models/language_string_map_spec.rb
|
|
349
285
|
- spec/models/notification_all_of_spec.rb
|
|
350
286
|
- spec/models/notification_history_success_response_spec.rb
|
|
351
287
|
- spec/models/notification_slice_spec.rb
|
|
@@ -359,28 +295,22 @@ test_files:
|
|
|
359
295
|
- spec/models/platform_delivery_data_email_all_of_spec.rb
|
|
360
296
|
- spec/models/platform_delivery_data_sms_all_of_spec.rb
|
|
361
297
|
- spec/models/platform_delivery_data_spec.rb
|
|
362
|
-
- spec/models/
|
|
363
|
-
- spec/models/player_notification_target_spec.rb
|
|
364
|
-
- spec/models/player_slice_spec.rb
|
|
365
|
-
- spec/models/player_spec.rb
|
|
298
|
+
- spec/models/properties_body_spec.rb
|
|
366
299
|
- spec/models/properties_deltas_spec.rb
|
|
367
300
|
- spec/models/properties_object_spec.rb
|
|
368
301
|
- spec/models/purchase_spec.rb
|
|
369
|
-
- spec/models/
|
|
302
|
+
- spec/models/rate_limit_error_spec.rb
|
|
303
|
+
- spec/models/segment_data_spec.rb
|
|
370
304
|
- spec/models/segment_notification_target_spec.rb
|
|
371
305
|
- spec/models/segment_spec.rb
|
|
372
|
-
- spec/models/
|
|
373
|
-
- spec/models/
|
|
306
|
+
- spec/models/subscription_body_spec.rb
|
|
307
|
+
- spec/models/subscription_notification_target_spec.rb
|
|
308
|
+
- spec/models/subscription_spec.rb
|
|
374
309
|
- spec/models/transfer_subscription_request_body_spec.rb
|
|
375
310
|
- spec/models/update_live_activity_request_spec.rb
|
|
376
311
|
- spec/models/update_live_activity_success_response_spec.rb
|
|
377
|
-
- spec/models/update_player_success_response_spec.rb
|
|
378
|
-
- spec/models/update_player_tags_request_body_spec.rb
|
|
379
|
-
- spec/models/update_player_tags_success_response_spec.rb
|
|
380
|
-
- spec/models/update_subscription_request_body_spec.rb
|
|
381
312
|
- spec/models/update_user_request_spec.rb
|
|
382
|
-
- spec/models/
|
|
383
|
-
- spec/models/user_identity_response_spec.rb
|
|
313
|
+
- spec/models/user_identity_body_spec.rb
|
|
384
314
|
- spec/models/user_spec.rb
|
|
385
|
-
- spec/models/
|
|
315
|
+
- spec/models/web_button_spec.rb
|
|
386
316
|
- spec/spec_helper.rb
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# OneSignal::BeginLiveActivityRequest
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **push_token** | **String** | | |
|
|
8
|
-
| **subscription_id** | **String** | | |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'onesignal'
|
|
14
|
-
|
|
15
|
-
instance = OneSignal::BeginLiveActivityRequest.new(
|
|
16
|
-
push_token: null,
|
|
17
|
-
subscription_id: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# OneSignal::CancelNotificationSuccessResponse
|
|
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::CancelNotificationSuccessResponse.new(
|
|
15
|
-
success: null
|
|
16
|
-
)
|
|
17
|
-
```
|
|
18
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# OneSignal::CreatePlayerSuccessResponse
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **success** | **Boolean** | | [optional] |
|
|
8
|
-
| **id** | **String** | | [optional] |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'onesignal'
|
|
14
|
-
|
|
15
|
-
instance = OneSignal::CreatePlayerSuccessResponse.new(
|
|
16
|
-
success: null,
|
|
17
|
-
id: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# OneSignal::CreateSubscriptionRequestBody
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **subscription** | [**SubscriptionObject**](SubscriptionObject.md) | | [optional] |
|
|
8
|
-
| **retain_previous_owner** | **Boolean** | | [optional] |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'onesignal'
|
|
14
|
-
|
|
15
|
-
instance = OneSignal::CreateSubscriptionRequestBody.new(
|
|
16
|
-
subscription: null,
|
|
17
|
-
retain_previous_owner: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# OneSignal::DeletePlayerNotFoundResponse
|
|
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::DeletePlayerNotFoundResponse.new(
|
|
15
|
-
success: null
|
|
16
|
-
)
|
|
17
|
-
```
|
|
18
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# OneSignal::DeleteSegmentNotFoundResponse
|
|
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::DeleteSegmentNotFoundResponse.new(
|
|
15
|
-
success: null
|
|
16
|
-
)
|
|
17
|
-
```
|
|
18
|
-
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# OneSignal::DeleteSegmentSuccessResponse
|
|
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::DeleteSegmentSuccessResponse.new(
|
|
15
|
-
success: null
|
|
16
|
-
)
|
|
17
|
-
```
|
|
18
|
-
|
data/docs/FilterExpressions.md
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# OneSignal::FilterExpressions
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **field** | **String** | Name of the field to use as the first operand in the filter expression. | |
|
|
8
|
-
| **key** | **String** | If `field` is `tag`, this field is *required* to specify `key` inside the tags. | [optional] |
|
|
9
|
-
| **value** | **String** | Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator. | [optional] |
|
|
10
|
-
| **relation** | **String** | Operator of a filter expression. | |
|
|
11
|
-
| **operator** | **String** | Strictly, this must be either `\"OR\"`, or `\"AND\"`. It can be used to compose Filters as part of a Filters object. | [optional] |
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```ruby
|
|
16
|
-
require 'onesignal'
|
|
17
|
-
|
|
18
|
-
instance = OneSignal::FilterExpressions.new(
|
|
19
|
-
field: null,
|
|
20
|
-
key: null,
|
|
21
|
-
value: null,
|
|
22
|
-
relation: null,
|
|
23
|
-
operator: null
|
|
24
|
-
)
|
|
25
|
-
```
|
|
26
|
-
|
data/docs/InlineResponse2003.md
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# OneSignal::InlineResponse2003
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **in_app_messages** | **Array<Object>** | | [optional] |
|
|
8
|
-
|
|
9
|
-
## Example
|
|
10
|
-
|
|
11
|
-
```ruby
|
|
12
|
-
require 'onesignal'
|
|
13
|
-
|
|
14
|
-
instance = OneSignal::InlineResponse2003.new(
|
|
15
|
-
in_app_messages: null
|
|
16
|
-
)
|
|
17
|
-
```
|
|
18
|
-
|
data/docs/InlineResponse201.md
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# OneSignal::InlineResponse201
|
|
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::InlineResponse201.new(
|
|
15
|
-
subscription: null
|
|
16
|
-
)
|
|
17
|
-
```
|
|
18
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# OneSignal::InvalidIdentifierError
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **invalid_external_user_ids** | **Array<String>** | Returned if using include_external_user_ids | [optional] |
|
|
8
|
-
| **invalid_player_ids** | **Array<String>** | Returned if using include_player_ids and some were valid and others were not. | [optional] |
|
|
9
|
-
|
|
10
|
-
## Example
|
|
11
|
-
|
|
12
|
-
```ruby
|
|
13
|
-
require 'onesignal'
|
|
14
|
-
|
|
15
|
-
instance = OneSignal::InvalidIdentifierError.new(
|
|
16
|
-
invalid_external_user_ids: null,
|
|
17
|
-
invalid_player_ids: null
|
|
18
|
-
)
|
|
19
|
-
```
|
|
20
|
-
|
data/docs/Player.md
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# OneSignal::Player
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
| Name | Type | Description | Notes |
|
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **id** | **String** | The device's OneSignal ID | [optional][readonly] |
|
|
8
|
-
| **invalid_identifier** | **Boolean** | If true, this is the equivalent of a user being Unsubscribed | [optional][readonly] |
|
|
9
|
-
| **app_id** | **String** | | [optional] |
|
|
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
|
-
| **external_user_id** | **String** | a custom user ID | [optional] |
|
|
12
|
-
| **external_user_id_auth_hash** | **String** | Only required if you have enabled Identity Verification and device_type is NOT 11 email. | [optional] |
|
|
13
|
-
| **email_auth_hash** | **String** | Email - Only required if you have enabled Identity Verification and device_type is email (11). | [optional] |
|
|
14
|
-
| **identifier** | **String** | Recommended: For Push Notifications, this is the Push Token Identifier from Google or Apple. For Apple Push identifiers, you must strip all non alphanumeric characters. Examples: iOS: 7abcd558f29d0b1f048083e2834ad8ea4b3d87d8ad9c088b33c132706ff445f0 Android: APA91bHbYHk7aq-Uam_2pyJ2qbZvqllyyh2wjfPRaw5gLEX2SUlQBRvOc6sck1sa7H7nGeLNlDco8lXj83HWWwzV... For Email Addresses, set the full email address email@email.com and make sure to set device_type to 11. | [optional] |
|
|
15
|
-
| **language** | **String** | Language code. Typically lower case two letters, except for Chinese where it must be one of zh-Hans or zh-Hant. Example: en | [optional] |
|
|
16
|
-
| **timezone** | **Integer** | Number of seconds away from UTC. Example: -28800 | [optional] |
|
|
17
|
-
| **game_version** | **String** | Version of your app. Example: 1.1 | [optional] |
|
|
18
|
-
| **device_model** | **String** | Device make and model. Example: iPhone5,1 | [optional] |
|
|
19
|
-
| **device_os** | **String** | Device operating system version. Example: 7.0.4 | [optional] |
|
|
20
|
-
| **ad_id** | **String** | The ad id for the device's platform: Android = Advertising Id iOS = identifierForVendor WP8.0 = DeviceUniqueId WP8.1 = AdvertisingId | [optional] |
|
|
21
|
-
| **sdk** | **String** | Name and version of the sdk/plugin that's calling this API method (if any) | [optional] |
|
|
22
|
-
| **session_count** | **Integer** | Number of times the user has played the game, defaults to 1 | [optional] |
|
|
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** | **Float** | Amount the user has spent in USD, up to two decimal places | [optional] |
|
|
25
|
-
| **created_at** | **Integer** | Unixtime when the player joined the game | [optional] |
|
|
26
|
-
| **playtime** | **Integer** | Seconds player was running your app. | [optional] |
|
|
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] |
|
|
28
|
-
| **last_active** | **Integer** | Unixtime when the player was last active | [optional] |
|
|
29
|
-
| **notification_types** | **Integer** | 1 = subscribed -2 = unsubscribed iOS - These values are set each time the user opens the app from the SDK. Use the SDK function set Subscription instead. Android - You may set this but you can no longer use the SDK method setSubscription later in your app as it will create synchronization issues. | [optional] |
|
|
30
|
-
| **test_type** | **Integer** | This is used in deciding whether to use your iOS Sandbox or Production push certificate when sending a push when both have been uploaded. Set to the iOS provisioning profile that was used to build your app. 1 = Development 2 = Ad-Hoc Omit this field for App Store builds. | [optional] |
|
|
31
|
-
| **long** | **Float** | Longitude of the device, used for geotagging to segment on. | [optional] |
|
|
32
|
-
| **lat** | **Float** | Latitude of the device, used for geotagging to segment on. | [optional] |
|
|
33
|
-
| **country** | **String** | Country code in the ISO 3166-1 Alpha 2 format | [optional] |
|
|
34
|
-
|
|
35
|
-
## Example
|
|
36
|
-
|
|
37
|
-
```ruby
|
|
38
|
-
require 'onesignal'
|
|
39
|
-
|
|
40
|
-
instance = OneSignal::Player.new(
|
|
41
|
-
id: null,
|
|
42
|
-
invalid_identifier: null,
|
|
43
|
-
app_id: null,
|
|
44
|
-
device_type: null,
|
|
45
|
-
external_user_id: null,
|
|
46
|
-
external_user_id_auth_hash: null,
|
|
47
|
-
email_auth_hash: null,
|
|
48
|
-
identifier: null,
|
|
49
|
-
language: null,
|
|
50
|
-
timezone: null,
|
|
51
|
-
game_version: null,
|
|
52
|
-
device_model: null,
|
|
53
|
-
device_os: null,
|
|
54
|
-
ad_id: null,
|
|
55
|
-
sdk: null,
|
|
56
|
-
session_count: null,
|
|
57
|
-
tags: null,
|
|
58
|
-
amount_spent: null,
|
|
59
|
-
created_at: null,
|
|
60
|
-
playtime: null,
|
|
61
|
-
badge_count: null,
|
|
62
|
-
last_active: null,
|
|
63
|
-
notification_types: null,
|
|
64
|
-
test_type: null,
|
|
65
|
-
long: null,
|
|
66
|
-
lat: null,
|
|
67
|
-
country: null
|
|
68
|
-
)
|
|
69
|
-
```
|
|
70
|
-
|