onesignal_sdk 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (233) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +31 -0
  3. data/Gemfile +9 -0
  4. data/LICENSE +24 -0
  5. data/README.md +210 -0
  6. data/RELEASE_INSTRUCTIONS.md +11 -0
  7. data/Rakefile +10 -0
  8. data/docs/App.md +84 -0
  9. data/docs/BasicNotification.md +228 -0
  10. data/docs/BasicNotificationAllOf.md +200 -0
  11. data/docs/BasicNotificationAllOfAndroidBackgroundLayout.md +22 -0
  12. data/docs/BeginLiveActivityRequest.md +20 -0
  13. data/docs/Button.md +22 -0
  14. data/docs/CancelNotificationSuccessResponse.md +18 -0
  15. data/docs/CreateNotificationSuccessResponse.md +24 -0
  16. data/docs/CreatePlayerSuccessResponse.md +20 -0
  17. data/docs/CreateSegmentConflictResponse.md +20 -0
  18. data/docs/CreateSegmentSuccessResponse.md +20 -0
  19. data/docs/CreateSubscriptionRequestBody.md +20 -0
  20. data/docs/CreateUserConflictResponse.md +18 -0
  21. data/docs/CreateUserConflictResponseErrorsInner.md +22 -0
  22. data/docs/CreateUserConflictResponseErrorsItemsMeta.md +18 -0
  23. data/docs/DefaultApi.md +2713 -0
  24. data/docs/DeletePlayerNotFoundResponse.md +18 -0
  25. data/docs/DeletePlayerSuccessResponse.md +18 -0
  26. data/docs/DeleteSegmentNotFoundResponse.md +18 -0
  27. data/docs/DeleteSegmentSuccessResponse.md +18 -0
  28. data/docs/DeliveryData.md +26 -0
  29. data/docs/ExportEventsSuccessResponse.md +18 -0
  30. data/docs/ExportPlayersRequestBody.md +22 -0
  31. data/docs/ExportPlayersSuccessResponse.md +18 -0
  32. data/docs/Filter.md +24 -0
  33. data/docs/FilterExpressions.md +26 -0
  34. data/docs/GenericError.md +18 -0
  35. data/docs/GenericErrorErrorsInner.md +20 -0
  36. data/docs/GetNotificationRequestBody.md +22 -0
  37. data/docs/InlineResponse200.md +18 -0
  38. data/docs/InlineResponse2003.md +18 -0
  39. data/docs/InlineResponse201.md +18 -0
  40. data/docs/InlineResponse202.md +18 -0
  41. data/docs/InvalidIdentifierError.md +20 -0
  42. data/docs/Notification.md +230 -0
  43. data/docs/Notification200Errors.md +49 -0
  44. data/docs/NotificationAllOf.md +18 -0
  45. data/docs/NotificationHistorySuccessResponse.md +20 -0
  46. data/docs/NotificationSlice.md +24 -0
  47. data/docs/NotificationTarget.md +44 -0
  48. data/docs/NotificationWithMeta.md +250 -0
  49. data/docs/NotificationWithMetaAllOf.md +38 -0
  50. data/docs/Operator.md +18 -0
  51. data/docs/OutcomeData.md +22 -0
  52. data/docs/OutcomesData.md +18 -0
  53. data/docs/PlatformDeliveryData.md +32 -0
  54. data/docs/PlatformDeliveryDataEmailAllOf.md +30 -0
  55. data/docs/PlatformDeliveryDataSmsAllOf.md +22 -0
  56. data/docs/Player.md +70 -0
  57. data/docs/PlayerNotificationTarget.md +40 -0
  58. data/docs/PlayerNotificationTargetIncludeAliases.md +18 -0
  59. data/docs/PlayerSlice.md +24 -0
  60. data/docs/PropertiesDeltas.md +22 -0
  61. data/docs/PropertiesObject.md +38 -0
  62. data/docs/Purchase.md +24 -0
  63. data/docs/RateLimiterError.md +18 -0
  64. data/docs/Segment.md +22 -0
  65. data/docs/SegmentNotificationTarget.md +20 -0
  66. data/docs/StringMap.md +102 -0
  67. data/docs/SubscriptionObject.md +50 -0
  68. data/docs/TransferSubscriptionRequestBody.md +18 -0
  69. data/docs/UpdateLiveActivityRequest.md +24 -0
  70. data/docs/UpdateLiveActivitySuccessResponse.md +20 -0
  71. data/docs/UpdatePlayerSuccessResponse.md +18 -0
  72. data/docs/UpdatePlayerTagsRequestBody.md +18 -0
  73. data/docs/UpdatePlayerTagsSuccessResponse.md +18 -0
  74. data/docs/UpdateSubscriptionRequestBody.md +18 -0
  75. data/docs/UpdateUserRequest.md +22 -0
  76. data/docs/User.md +24 -0
  77. data/docs/UserIdentityRequestBody.md +18 -0
  78. data/docs/UserIdentityResponse.md +18 -0
  79. data/docs/UserSubscriptionOptions.md +18 -0
  80. data/lib/onesignal/api/default_api.rb +2727 -0
  81. data/lib/onesignal/api_client.rb +393 -0
  82. data/lib/onesignal/api_error.rb +57 -0
  83. data/lib/onesignal/configuration.rb +245 -0
  84. data/lib/onesignal/models/app.rb +586 -0
  85. data/lib/onesignal/models/basic_notification.rb +1431 -0
  86. data/lib/onesignal/models/basic_notification_all_of.rb +1241 -0
  87. data/lib/onesignal/models/basic_notification_all_of_android_background_layout.rb +241 -0
  88. data/lib/onesignal/models/begin_live_activity_request.rb +238 -0
  89. data/lib/onesignal/models/button.rb +242 -0
  90. data/lib/onesignal/models/cancel_notification_success_response.rb +219 -0
  91. data/lib/onesignal/models/create_notification_success_response.rb +248 -0
  92. data/lib/onesignal/models/create_player_success_response.rb +228 -0
  93. data/lib/onesignal/models/create_segment_conflict_response.rb +230 -0
  94. data/lib/onesignal/models/create_segment_success_response.rb +229 -0
  95. data/lib/onesignal/models/create_subscription_request_body.rb +228 -0
  96. data/lib/onesignal/models/create_user_conflict_response.rb +221 -0
  97. data/lib/onesignal/models/create_user_conflict_response_errors_inner.rb +237 -0
  98. data/lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb +219 -0
  99. data/lib/onesignal/models/delete_player_not_found_response.rb +219 -0
  100. data/lib/onesignal/models/delete_player_success_response.rb +219 -0
  101. data/lib/onesignal/models/delete_segment_not_found_response.rb +219 -0
  102. data/lib/onesignal/models/delete_segment_success_response.rb +219 -0
  103. data/lib/onesignal/models/delivery_data.rb +265 -0
  104. data/lib/onesignal/models/export_events_success_response.rb +219 -0
  105. data/lib/onesignal/models/export_players_request_body.rb +242 -0
  106. data/lib/onesignal/models/export_players_success_response.rb +219 -0
  107. data/lib/onesignal/models/filter.rb +294 -0
  108. data/lib/onesignal/models/filter_expressions.rb +336 -0
  109. data/lib/onesignal/models/generic_error.rb +221 -0
  110. data/lib/onesignal/models/generic_error_errors_inner.rb +228 -0
  111. data/lib/onesignal/models/get_notification_request_body.rb +273 -0
  112. data/lib/onesignal/models/inline_response200.rb +221 -0
  113. data/lib/onesignal/models/inline_response2003.rb +221 -0
  114. data/lib/onesignal/models/inline_response201.rb +219 -0
  115. data/lib/onesignal/models/inline_response202.rb +219 -0
  116. data/lib/onesignal/models/invalid_identifier_error.rb +234 -0
  117. data/lib/onesignal/models/notification.rb +1442 -0
  118. data/lib/onesignal/models/notification200_errors.rb +105 -0
  119. data/lib/onesignal/models/notification_all_of.rb +221 -0
  120. data/lib/onesignal/models/notification_history_success_response.rb +228 -0
  121. data/lib/onesignal/models/notification_slice.rb +248 -0
  122. data/lib/onesignal/models/notification_target.rb +429 -0
  123. data/lib/onesignal/models/notification_with_meta.rb +1546 -0
  124. data/lib/onesignal/models/notification_with_meta_all_of.rb +323 -0
  125. data/lib/onesignal/models/operator.rb +254 -0
  126. data/lib/onesignal/models/outcome_data.rb +286 -0
  127. data/lib/onesignal/models/outcomes_data.rb +221 -0
  128. data/lib/onesignal/models/platform_delivery_data.rb +285 -0
  129. data/lib/onesignal/models/platform_delivery_data_email_all_of.rb +287 -0
  130. data/lib/onesignal/models/platform_delivery_data_sms_all_of.rb +243 -0
  131. data/lib/onesignal/models/player.rb +494 -0
  132. data/lib/onesignal/models/player_notification_target.rb +385 -0
  133. data/lib/onesignal/models/player_notification_target_include_aliases.rb +221 -0
  134. data/lib/onesignal/models/player_slice.rb +248 -0
  135. data/lib/onesignal/models/properties_deltas.rb +239 -0
  136. data/lib/onesignal/models/properties_object.rb +313 -0
  137. data/lib/onesignal/models/purchase.rb +264 -0
  138. data/lib/onesignal/models/rate_limiter_error.rb +221 -0
  139. data/lib/onesignal/models/segment.rb +252 -0
  140. data/lib/onesignal/models/segment_notification_target.rb +234 -0
  141. data/lib/onesignal/models/string_map.rb +640 -0
  142. data/lib/onesignal/models/subscription_object.rb +397 -0
  143. data/lib/onesignal/models/transfer_subscription_request_body.rb +221 -0
  144. data/lib/onesignal/models/update_live_activity_request.rb +309 -0
  145. data/lib/onesignal/models/update_live_activity_success_response.rb +228 -0
  146. data/lib/onesignal/models/update_player_success_response.rb +219 -0
  147. data/lib/onesignal/models/update_player_tags_request_body.rb +220 -0
  148. data/lib/onesignal/models/update_player_tags_success_response.rb +219 -0
  149. data/lib/onesignal/models/update_subscription_request_body.rb +219 -0
  150. data/lib/onesignal/models/update_user_request.rb +239 -0
  151. data/lib/onesignal/models/user.rb +250 -0
  152. data/lib/onesignal/models/user_identity_request_body.rb +221 -0
  153. data/lib/onesignal/models/user_identity_response.rb +221 -0
  154. data/lib/onesignal/models/user_subscription_options.rb +219 -0
  155. data/lib/onesignal/version.rb +15 -0
  156. data/lib/onesignal.rb +111 -0
  157. data/onesignal.gemspec +38 -0
  158. data/spec/api/default_api_spec.rb +522 -0
  159. data/spec/api_client_spec.rb +226 -0
  160. data/spec/configuration_spec.rb +42 -0
  161. data/spec/models/app_spec.rb +236 -0
  162. data/spec/models/basic_notification_all_of_android_background_layout_spec.rb +46 -0
  163. data/spec/models/basic_notification_all_of_spec.rb +584 -0
  164. data/spec/models/basic_notification_spec.rb +672 -0
  165. data/spec/models/begin_live_activity_request_spec.rb +40 -0
  166. data/spec/models/button_spec.rb +46 -0
  167. data/spec/models/cancel_notification_success_response_spec.rb +34 -0
  168. data/spec/models/create_notification_success_response_spec.rb +52 -0
  169. data/spec/models/create_player_success_response_spec.rb +40 -0
  170. data/spec/models/create_segment_conflict_response_spec.rb +40 -0
  171. data/spec/models/create_segment_success_response_spec.rb +40 -0
  172. data/spec/models/create_subscription_request_body_spec.rb +40 -0
  173. data/spec/models/create_user_conflict_response_errors_inner_spec.rb +46 -0
  174. data/spec/models/create_user_conflict_response_errors_items_meta_spec.rb +34 -0
  175. data/spec/models/create_user_conflict_response_spec.rb +34 -0
  176. data/spec/models/delete_player_not_found_response_spec.rb +34 -0
  177. data/spec/models/delete_player_success_response_spec.rb +34 -0
  178. data/spec/models/delete_segment_not_found_response_spec.rb +34 -0
  179. data/spec/models/delete_segment_success_response_spec.rb +34 -0
  180. data/spec/models/delivery_data_spec.rb +58 -0
  181. data/spec/models/export_events_success_response_spec.rb +34 -0
  182. data/spec/models/export_players_request_body_spec.rb +46 -0
  183. data/spec/models/export_players_success_response_spec.rb +34 -0
  184. data/spec/models/filter_expressions_spec.rb +66 -0
  185. data/spec/models/filter_spec.rb +56 -0
  186. data/spec/models/generic_error_errors_inner_spec.rb +40 -0
  187. data/spec/models/generic_error_spec.rb +34 -0
  188. data/spec/models/get_notification_request_body_spec.rb +50 -0
  189. data/spec/models/inline_response2003_spec.rb +34 -0
  190. data/spec/models/inline_response200_spec.rb +34 -0
  191. data/spec/models/inline_response201_spec.rb +34 -0
  192. data/spec/models/inline_response202_spec.rb +34 -0
  193. data/spec/models/invalid_identifier_error_spec.rb +40 -0
  194. data/spec/models/notification200_errors_spec.rb +31 -0
  195. data/spec/models/notification_all_of_spec.rb +34 -0
  196. data/spec/models/notification_history_success_response_spec.rb +40 -0
  197. data/spec/models/notification_slice_spec.rb +52 -0
  198. data/spec/models/notification_spec.rb +678 -0
  199. data/spec/models/notification_target_spec.rb +116 -0
  200. data/spec/models/notification_with_meta_all_of_spec.rb +94 -0
  201. data/spec/models/notification_with_meta_spec.rb +738 -0
  202. data/spec/models/operator_spec.rb +38 -0
  203. data/spec/models/outcome_data_spec.rb +50 -0
  204. data/spec/models/outcomes_data_spec.rb +34 -0
  205. data/spec/models/platform_delivery_data_email_all_of_spec.rb +70 -0
  206. data/spec/models/platform_delivery_data_sms_all_of_spec.rb +46 -0
  207. data/spec/models/platform_delivery_data_spec.rb +76 -0
  208. data/spec/models/player_notification_target_include_aliases_spec.rb +34 -0
  209. data/spec/models/player_notification_target_spec.rb +104 -0
  210. data/spec/models/player_slice_spec.rb +52 -0
  211. data/spec/models/player_spec.rb +190 -0
  212. data/spec/models/properties_deltas_spec.rb +46 -0
  213. data/spec/models/properties_object_spec.rb +94 -0
  214. data/spec/models/purchase_spec.rb +52 -0
  215. data/spec/models/rate_limiter_error_spec.rb +34 -0
  216. data/spec/models/segment_notification_target_spec.rb +40 -0
  217. data/spec/models/segment_spec.rb +46 -0
  218. data/spec/models/string_map_spec.rb +286 -0
  219. data/spec/models/subscription_object_spec.rb +134 -0
  220. data/spec/models/transfer_subscription_request_body_spec.rb +34 -0
  221. data/spec/models/update_live_activity_request_spec.rb +60 -0
  222. data/spec/models/update_live_activity_success_response_spec.rb +40 -0
  223. data/spec/models/update_player_success_response_spec.rb +34 -0
  224. data/spec/models/update_player_tags_request_body_spec.rb +34 -0
  225. data/spec/models/update_player_tags_success_response_spec.rb +34 -0
  226. data/spec/models/update_subscription_request_body_spec.rb +34 -0
  227. data/spec/models/update_user_request_spec.rb +46 -0
  228. data/spec/models/user_identity_request_body_spec.rb +34 -0
  229. data/spec/models/user_identity_response_spec.rb +34 -0
  230. data/spec/models/user_spec.rb +52 -0
  231. data/spec/models/user_subscription_options_spec.rb +34 -0
  232. data/spec/spec_helper.rb +111 -0
  233. metadata +389 -0
data/docs/Player.md ADDED
@@ -0,0 +1,70 @@
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
+
@@ -0,0 +1,40 @@
1
+ # OneSignal::PlayerNotificationTarget
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
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: [\"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
+ | **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
+ | **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
+ | **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] |
12
+ | **include_wp_wns_uris** | **Array<String>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Windows URIs. If a token does not correspond to an existing user, a new user will be created. Example: http://s.notify.live.net/u/1/bn1/HmQAAACPaLDr-... Limit of 2,000 entries per REST API call | [optional] |
13
+ | **include_amazon_reg_ids** | **Array<String>** | Not Recommended: Please consider using include_player_ids or include_external_user_ids instead. Target using Amazon ADM registration IDs. If a token does not correspond to an existing user, a new user will be created. Example: amzn1.adm-registration.v1.XpvSSUk0Rc3hTVVV... Limit of 2,000 entries per REST API call | [optional] |
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
+ | **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
+ | **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] |
19
+
20
+ ## Example
21
+
22
+ ```ruby
23
+ require 'onesignal'
24
+
25
+ instance = OneSignal::PlayerNotificationTarget.new(
26
+ include_player_ids: null,
27
+ include_external_user_ids: null,
28
+ include_email_tokens: null,
29
+ include_phone_numbers: null,
30
+ include_ios_tokens: null,
31
+ include_wp_wns_uris: null,
32
+ include_amazon_reg_ids: null,
33
+ include_chrome_reg_ids: null,
34
+ include_chrome_web_reg_ids: null,
35
+ include_android_reg_ids: null,
36
+ include_aliases: null,
37
+ target_channel: null
38
+ )
39
+ ```
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,24 @@
1
+ # OneSignal::PlayerSlice
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **total_count** | **Integer** | | [optional] |
8
+ | **offset** | **Integer** | | [optional] |
9
+ | **limit** | **Integer** | | [optional] |
10
+ | **players** | [**Array<Player>**](Player.md) | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'onesignal'
16
+
17
+ instance = OneSignal::PlayerSlice.new(
18
+ total_count: null,
19
+ offset: null,
20
+ limit: null,
21
+ players: null
22
+ )
23
+ ```
24
+
@@ -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 ADDED
@@ -0,0 +1,24 @@
1
+ # OneSignal::Purchase
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **sku** | **String** | The unique identifier of the purchased item. | |
8
+ | **amount** | **String** | The amount, in USD, spent purchasing the item. | |
9
+ | **iso** | **String** | The 3-letter ISO 4217 currency code. Required for correct storage and conversion of amount. | |
10
+ | **count** | **Float** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'onesignal'
16
+
17
+ instance = OneSignal::Purchase.new(
18
+ sku: null,
19
+ amount: null,
20
+ iso: null,
21
+ count: null
22
+ )
23
+ ```
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/Segment.md ADDED
@@ -0,0 +1,22 @@
1
+ # OneSignal::Segment
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | UUID of the segment. If left empty, it will be assigned automaticaly. | [optional] |
8
+ | **name** | **String** | Name of the segment. You'll see this name on the Web UI. | |
9
+ | **filters** | [**Array<FilterExpressions>**](FilterExpressions.md) | Filter or operators the segment will have. For a list of available filters with details, please see Send to Users Based on Filters. | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'onesignal'
15
+
16
+ instance = OneSignal::Segment.new(
17
+ id: null,
18
+ name: null,
19
+ filters: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # OneSignal::SegmentNotificationTarget
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **included_segments** | **Array<String>** | The segment names you want to target. Users in these segments will receive a notification. This targeting parameter is only compatible with excluded_segments. Example: [\"Active Users\", \"Inactive Users\"] | [optional] |
8
+ | **excluded_segments** | **Array<String>** | Segment that will be excluded when sending. Users in these segments will not receive a notification, even if they were included in included_segments. This targeting parameter is only compatible with included_segments. Example: [\"Active Users\", \"Inactive Users\"] | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'onesignal'
14
+
15
+ instance = OneSignal::SegmentNotificationTarget.new(
16
+ included_segments: null,
17
+ excluded_segments: null
18
+ )
19
+ ```
20
+
data/docs/StringMap.md ADDED
@@ -0,0 +1,102 @@
1
+ # OneSignal::StringMap
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **en** | **String** | Text in English. Will be used as a fallback | [optional] |
8
+ | **ar** | **String** | Text in Arabic. | [optional] |
9
+ | **bs** | **String** | Text in Bosnian. | [optional] |
10
+ | **bg** | **String** | Text in Bulgarian. | [optional] |
11
+ | **ca** | **String** | Text in Catalan. | [optional] |
12
+ | **zh_hans** | **String** | Text in Chinese (Simplified). | [optional] |
13
+ | **zh_hant** | **String** | Text in Chinese (Traditional). | [optional] |
14
+ | **zh** | **String** | Alias for zh-Hans. | [optional] |
15
+ | **hr** | **String** | Text in Croatian. | [optional] |
16
+ | **cs** | **String** | Text in Czech. | [optional] |
17
+ | **da** | **String** | Text in Danish. | [optional] |
18
+ | **nl** | **String** | Text in Dutch. | [optional] |
19
+ | **et** | **String** | Text in Estonian. | [optional] |
20
+ | **fi** | **String** | Text in Finnish. | [optional] |
21
+ | **fr** | **String** | Text in French. | [optional] |
22
+ | **ka** | **String** | Text in Georgian. | [optional] |
23
+ | **de** | **String** | Text in German. | [optional] |
24
+ | **el** | **String** | Text in Greek. | [optional] |
25
+ | **hi** | **String** | Text in Hindi. | [optional] |
26
+ | **he** | **String** | Text in Hebrew. | [optional] |
27
+ | **hu** | **String** | Text in Hungarian. | [optional] |
28
+ | **id** | **String** | Text in Indonesian. | [optional] |
29
+ | **it** | **String** | Text in Italian. | [optional] |
30
+ | **ja** | **String** | Text in Japanese. | [optional] |
31
+ | **ko** | **String** | Text in Korean. | [optional] |
32
+ | **lv** | **String** | Text in Latvian. | [optional] |
33
+ | **lt** | **String** | Text in Lithuanian. | [optional] |
34
+ | **ms** | **String** | Text in Malay. | [optional] |
35
+ | **nb** | **String** | Text in Norwegian. | [optional] |
36
+ | **pl** | **String** | Text in Polish. | [optional] |
37
+ | **fa** | **String** | Text in Persian. | [optional] |
38
+ | **pt** | **String** | Text in Portugese. | [optional] |
39
+ | **pa** | **String** | Text in Punjabi. | [optional] |
40
+ | **ro** | **String** | Text in Romanian. | [optional] |
41
+ | **ru** | **String** | Text in Russian. | [optional] |
42
+ | **sr** | **String** | Text in Serbian. | [optional] |
43
+ | **sk** | **String** | Text in Slovak. | [optional] |
44
+ | **es** | **String** | Text in Spanish. | [optional] |
45
+ | **sv** | **String** | Text in Swedish. | [optional] |
46
+ | **th** | **String** | Text in Thai. | [optional] |
47
+ | **tr** | **String** | Text in Turkish. | [optional] |
48
+ | **uk** | **String** | Text in Ukrainian. | [optional] |
49
+ | **vi** | **String** | Text in Vietnamese. | [optional] |
50
+
51
+ ## Example
52
+
53
+ ```ruby
54
+ require 'onesignal'
55
+
56
+ instance = OneSignal::StringMap.new(
57
+ en: null,
58
+ ar: null,
59
+ bs: null,
60
+ bg: null,
61
+ ca: null,
62
+ zh_hans: null,
63
+ zh_hant: null,
64
+ zh: null,
65
+ hr: null,
66
+ cs: null,
67
+ da: null,
68
+ nl: null,
69
+ et: null,
70
+ fi: null,
71
+ fr: null,
72
+ ka: null,
73
+ de: null,
74
+ el: null,
75
+ hi: null,
76
+ he: null,
77
+ hu: null,
78
+ id: null,
79
+ it: null,
80
+ ja: null,
81
+ ko: null,
82
+ lv: null,
83
+ lt: null,
84
+ ms: null,
85
+ nb: null,
86
+ pl: null,
87
+ fa: null,
88
+ pt: null,
89
+ pa: null,
90
+ ro: null,
91
+ ru: null,
92
+ sr: null,
93
+ sk: null,
94
+ es: null,
95
+ sv: null,
96
+ th: null,
97
+ tr: null,
98
+ uk: null,
99
+ vi: null
100
+ )
101
+ ```
102
+
@@ -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::UpdatePlayerTagsRequestBody
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **tags** | **Object** | Custom tags for the device record. Only support string key value pairs. Does not support arrays or other nested objects. 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 ata Please consider using your own Database to save more than 1 kilobyte of data. See: Internal Database & CRM | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'onesignal'
13
+
14
+ instance = OneSignal::UpdatePlayerTagsRequestBody.new(
15
+ tags: 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
+