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/lib/onesignal.rb ADDED
@@ -0,0 +1,111 @@
1
+ =begin
2
+ #OneSignal
3
+
4
+ #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
+
6
+ The version of the OpenAPI document: 1.2.2
7
+ Contact: devrel@onesignal.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ # Common files
14
+ require 'onesignal/api_client'
15
+ require 'onesignal/api_error'
16
+ require 'onesignal/version'
17
+ require 'onesignal/configuration'
18
+
19
+ # Models
20
+ require 'onesignal/models/app'
21
+ require 'onesignal/models/basic_notification'
22
+ require 'onesignal/models/basic_notification_all_of'
23
+ require 'onesignal/models/basic_notification_all_of_android_background_layout'
24
+ require 'onesignal/models/begin_live_activity_request'
25
+ require 'onesignal/models/button'
26
+ require 'onesignal/models/cancel_notification_success_response'
27
+ require 'onesignal/models/create_notification_success_response'
28
+ require 'onesignal/models/create_player_success_response'
29
+ require 'onesignal/models/create_segment_conflict_response'
30
+ require 'onesignal/models/create_segment_success_response'
31
+ require 'onesignal/models/create_subscription_request_body'
32
+ require 'onesignal/models/create_user_conflict_response'
33
+ require 'onesignal/models/create_user_conflict_response_errors_inner'
34
+ require 'onesignal/models/create_user_conflict_response_errors_items_meta'
35
+ require 'onesignal/models/delete_player_not_found_response'
36
+ require 'onesignal/models/delete_player_success_response'
37
+ require 'onesignal/models/delete_segment_not_found_response'
38
+ require 'onesignal/models/delete_segment_success_response'
39
+ require 'onesignal/models/delivery_data'
40
+ require 'onesignal/models/export_events_success_response'
41
+ require 'onesignal/models/export_players_request_body'
42
+ require 'onesignal/models/export_players_success_response'
43
+ require 'onesignal/models/filter'
44
+ require 'onesignal/models/filter_expressions'
45
+ require 'onesignal/models/generic_error'
46
+ require 'onesignal/models/generic_error_errors_inner'
47
+ require 'onesignal/models/get_notification_request_body'
48
+ require 'onesignal/models/inline_response200'
49
+ require 'onesignal/models/inline_response2003'
50
+ require 'onesignal/models/inline_response201'
51
+ require 'onesignal/models/inline_response202'
52
+ require 'onesignal/models/invalid_identifier_error'
53
+ require 'onesignal/models/notification'
54
+ require 'onesignal/models/notification200_errors'
55
+ require 'onesignal/models/notification_all_of'
56
+ require 'onesignal/models/notification_history_success_response'
57
+ require 'onesignal/models/notification_slice'
58
+ require 'onesignal/models/notification_target'
59
+ require 'onesignal/models/notification_with_meta'
60
+ require 'onesignal/models/notification_with_meta_all_of'
61
+ require 'onesignal/models/operator'
62
+ require 'onesignal/models/outcome_data'
63
+ require 'onesignal/models/outcomes_data'
64
+ require 'onesignal/models/platform_delivery_data'
65
+ require 'onesignal/models/platform_delivery_data_email_all_of'
66
+ require 'onesignal/models/platform_delivery_data_sms_all_of'
67
+ require 'onesignal/models/player'
68
+ require 'onesignal/models/player_notification_target'
69
+ require 'onesignal/models/player_notification_target_include_aliases'
70
+ require 'onesignal/models/player_slice'
71
+ require 'onesignal/models/properties_deltas'
72
+ require 'onesignal/models/properties_object'
73
+ require 'onesignal/models/purchase'
74
+ require 'onesignal/models/rate_limiter_error'
75
+ require 'onesignal/models/segment'
76
+ require 'onesignal/models/segment_notification_target'
77
+ require 'onesignal/models/string_map'
78
+ require 'onesignal/models/subscription_object'
79
+ require 'onesignal/models/transfer_subscription_request_body'
80
+ require 'onesignal/models/update_live_activity_request'
81
+ require 'onesignal/models/update_live_activity_success_response'
82
+ require 'onesignal/models/update_player_success_response'
83
+ require 'onesignal/models/update_player_tags_request_body'
84
+ require 'onesignal/models/update_player_tags_success_response'
85
+ require 'onesignal/models/update_subscription_request_body'
86
+ require 'onesignal/models/update_user_request'
87
+ require 'onesignal/models/user'
88
+ require 'onesignal/models/user_identity_request_body'
89
+ require 'onesignal/models/user_identity_response'
90
+ require 'onesignal/models/user_subscription_options'
91
+
92
+ # APIs
93
+ require 'onesignal/api/default_api'
94
+
95
+ module OneSignal
96
+ class << self
97
+ # Customize default settings for the SDK using block.
98
+ # OneSignal.configure do |config|
99
+ # config.username = "xxx"
100
+ # config.password = "xxx"
101
+ # end
102
+ # If no block given, return the default Configuration object.
103
+ def configure
104
+ if block_given?
105
+ yield(Configuration.default)
106
+ else
107
+ Configuration.default
108
+ end
109
+ end
110
+ end
111
+ end
data/onesignal.gemspec ADDED
@@ -0,0 +1,38 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #OneSignal
5
+
6
+ #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
7
+
8
+ The version of the OpenAPI document: 1.2.2
9
+ Contact: devrel@onesignal.com
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "onesignal/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "onesignal_sdk"
20
+ s.version = OneSignal::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["OneSignal"]
23
+ s.email = ["devrel@onesignal.com"]
24
+ s.homepage = "https://onesignal.com/"
25
+ s.summary = "OneSignal"
26
+ s.description = "OneSignal"
27
+ s.license = "Modified MIT"
28
+ s.required_ruby_version = ">= 2.4"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+
32
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
33
+
34
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
35
+ s.test_files = `find spec/*`.split("\n")
36
+ s.executables = []
37
+ s.require_paths = ["lib"]
38
+ end
@@ -0,0 +1,522 @@
1
+ =begin
2
+ #OneSignal
3
+
4
+ #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
+
6
+ The version of the OpenAPI document: 1.2.2
7
+ Contact: devrel@onesignal.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for OneSignal::DefaultApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'DefaultApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = OneSignal::DefaultApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of DefaultApi' do
30
+ it 'should create an instance of DefaultApi' do
31
+ expect(@api_instance).to be_instance_of(OneSignal::DefaultApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for begin_live_activity
36
+ # Start Live Activity
37
+ # Starts a Live Activity
38
+ # @param app_id The OneSignal App ID for your app. Available in Keys &amp; IDs.
39
+ # @param activity_id Live Activity record ID
40
+ # @param begin_live_activity_request
41
+ # @param [Hash] opts the optional parameters
42
+ # @return [nil]
43
+ describe 'begin_live_activity test' do
44
+ it 'should work' do
45
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
46
+ end
47
+ end
48
+
49
+ # unit tests for cancel_notification
50
+ # Stop a scheduled or currently outgoing notification
51
+ # Used to stop a scheduled or currently outgoing notification
52
+ # @param app_id
53
+ # @param notification_id
54
+ # @param [Hash] opts the optional parameters
55
+ # @return [CancelNotificationSuccessResponse]
56
+ describe 'cancel_notification test' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
+ end
60
+ end
61
+
62
+ # unit tests for create_app
63
+ # Create an app
64
+ # Creates a new OneSignal app
65
+ # @param app
66
+ # @param [Hash] opts the optional parameters
67
+ # @return [App]
68
+ describe 'create_app test' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
+ end
72
+ end
73
+
74
+ # unit tests for create_notification
75
+ # Create notification
76
+ # Sends notifications to your users
77
+ # @param notification
78
+ # @param [Hash] opts the optional parameters
79
+ # @return [CreateNotificationSuccessResponse]
80
+ describe 'create_notification test' do
81
+ it 'should work' do
82
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
83
+ end
84
+ end
85
+
86
+ # unit tests for create_player
87
+ # Add a device
88
+ # Register a new device to one of your OneSignal apps &amp;#x1F6A7; Don&#39;t use this This API endpoint is designed to be used from our open source Mobile and Web Push SDKs. It is not designed for developers to use it directly, unless instructed to do so by OneSignal support. If you use this method instead of our SDKs, many OneSignal features such as conversion tracking, timezone tracking, language detection, and rich-push won&#39;t work out of the box. It will also make it harder to identify possible setup issues. This method is used to register a new device with OneSignal. If a device is already registered with the specified identifier, then this will update the existing device record instead of creating a new one. The returned player is a player / user ID. Use the returned ID to send push notifications to this specific user later, or to include this player when sending to a set of users. &amp;#x1F6A7; iOS Must set test_type to 1 when building your iOS app as development. Omit this field in your production app builds.
89
+ # @param player
90
+ # @param [Hash] opts the optional parameters
91
+ # @return [CreatePlayerSuccessResponse]
92
+ describe 'create_player test' do
93
+ it 'should work' do
94
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
95
+ end
96
+ end
97
+
98
+ # unit tests for create_segments
99
+ # Create Segments
100
+ # Create segments visible and usable in the dashboard and API - Required: OneSignal Paid Plan The Create Segment method is used when you want your server to programmatically create a segment instead of using the OneSignal Dashboard UI. Just like creating Segments from the dashboard you can pass in filters with multiple \&quot;AND\&quot; or \&quot;OR\&quot; operator&#39;s. &amp;#x1F6A7; Does Not Update Segments This endpoint will only create segments, it does not edit or update currently created Segments. You will need to use the Delete Segments endpoint and re-create it with this endpoint to edit.
101
+ # @param app_id The OneSignal App ID for your app. Available in Keys &amp; IDs.
102
+ # @param [Hash] opts the optional parameters
103
+ # @option opts [Segment] :segment
104
+ # @return [CreateSegmentSuccessResponse]
105
+ describe 'create_segments test' do
106
+ it 'should work' do
107
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
108
+ end
109
+ end
110
+
111
+ # unit tests for create_subscription
112
+ # Creates a new Subscription under the User provided. Useful to add email addresses and SMS numbers to the User.
113
+ # @param app_id
114
+ # @param alias_label
115
+ # @param alias_id
116
+ # @param create_subscription_request_body
117
+ # @param [Hash] opts the optional parameters
118
+ # @return [InlineResponse201]
119
+ describe 'create_subscription test' do
120
+ it 'should work' do
121
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
122
+ end
123
+ end
124
+
125
+ # unit tests for create_user
126
+ # Creates a User, optionally Subscriptions owned by the User as well as Aliases. Aliases provided in the payload will be used to look up an existing User.
127
+ # @param app_id
128
+ # @param user
129
+ # @param [Hash] opts the optional parameters
130
+ # @return [User]
131
+ describe 'create_user test' do
132
+ it 'should work' do
133
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
134
+ end
135
+ end
136
+
137
+ # unit tests for delete_alias
138
+ # Deletes an alias by alias label
139
+ # @param app_id
140
+ # @param alias_label
141
+ # @param alias_id
142
+ # @param alias_label_to_delete
143
+ # @param [Hash] opts the optional parameters
144
+ # @return [InlineResponse200]
145
+ describe 'delete_alias test' do
146
+ it 'should work' do
147
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
148
+ end
149
+ end
150
+
151
+ # unit tests for delete_player
152
+ # Delete a user record
153
+ # Delete player - Required: Used to delete a single, specific Player ID record from a specific OneSignal app.
154
+ # @param app_id The OneSignal App ID for your app. Available in Keys &amp; IDs.
155
+ # @param player_id The OneSignal player_id
156
+ # @param [Hash] opts the optional parameters
157
+ # @return [DeletePlayerSuccessResponse]
158
+ describe 'delete_player test' do
159
+ it 'should work' do
160
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
161
+ end
162
+ end
163
+
164
+ # unit tests for delete_segments
165
+ # Delete Segments
166
+ # Delete segments (not user devices) - Required: OneSignal Paid Plan You can delete a segment under your app by calling this API. You must provide an API key in the Authorization header that has admin access on the app. The segment_id can be found in the URL of the segment when viewing it in the dashboard.
167
+ # @param app_id The OneSignal App ID for your app. Available in Keys &amp; IDs.
168
+ # @param segment_id The segment_id can be found in the URL of the segment when viewing it in the dashboard.
169
+ # @param [Hash] opts the optional parameters
170
+ # @return [DeleteSegmentSuccessResponse]
171
+ describe 'delete_segments test' do
172
+ it 'should work' do
173
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
174
+ end
175
+ end
176
+
177
+ # unit tests for delete_subscription
178
+ # Deletes the Subscription.
179
+ # @param app_id
180
+ # @param subscription_id
181
+ # @param [Hash] opts the optional parameters
182
+ # @return [nil]
183
+ describe 'delete_subscription test' do
184
+ it 'should work' do
185
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
186
+ end
187
+ end
188
+
189
+ # unit tests for delete_user
190
+ # Removes the User identified by (:alias_label, :alias_id), and all Subscriptions and Aliases
191
+ # @param app_id
192
+ # @param alias_label
193
+ # @param alias_id
194
+ # @param [Hash] opts the optional parameters
195
+ # @return [nil]
196
+ describe 'delete_user test' do
197
+ it 'should work' do
198
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
199
+ end
200
+ end
201
+
202
+ # unit tests for end_live_activity
203
+ # Stop Live Activity
204
+ # Stops a Live Activity
205
+ # @param app_id The OneSignal App ID for your app. Available in Keys &amp; IDs.
206
+ # @param activity_id Live Activity record ID
207
+ # @param subscription_id Subscription ID
208
+ # @param [Hash] opts the optional parameters
209
+ # @return [nil]
210
+ describe 'end_live_activity test' do
211
+ it 'should work' do
212
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
213
+ end
214
+ end
215
+
216
+ # unit tests for export_events
217
+ # Export CSV of Events
218
+ # Generate a compressed CSV report of all of the events data for a notification. This will return a URL immediately upon success but it may take several minutes for the CSV to become available at that URL depending on the volume of data. Only one export can be in-progress per OneSignal account at any given time.
219
+ # @param notification_id The ID of the notification to export events from.
220
+ # @param app_id The ID of the app that the notification belongs to.
221
+ # @param [Hash] opts the optional parameters
222
+ # @return [ExportEventsSuccessResponse]
223
+ describe 'export_events test' do
224
+ it 'should work' do
225
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
226
+ end
227
+ end
228
+
229
+ # unit tests for export_players
230
+ # Export CSV of Players
231
+ # Generate a compressed CSV export of all of your current user data This method can be used to generate a compressed CSV export of all of your current user data. It is a much faster alternative than retrieving this data using the /players API endpoint. The file will be compressed using GZip. The file may take several minutes to generate depending on the number of users in your app. The URL generated will be available for 3 days and includes random v4 uuid as part of the resource name to be unguessable. &amp;#x1F6A7; 403 Error Responses You can test if it is complete by making a GET request to the csv_file_url value. This file may take time to generate depending on how many device records are being pulled. If the file is not ready, a 403 error will be returned. Otherwise the file itself will be returned. &amp;#x1F6A7; Requires Authentication Key Requires your OneSignal App&#39;s REST API Key, available in Keys &amp; IDs. &amp;#x1F6A7; Concurrent Exports Only one concurrent export is allowed per OneSignal account. Please ensure you have successfully downloaded the .csv.gz file before exporting another app. CSV File Format: - Default Columns: | Field | Details | | --- | --- | | id | OneSignal Player Id | | identifier | Push Token | | session_count | Number of times they visited the app or site | language | Device language code | | timezone | Number of seconds away from UTC. Example: -28800 | | game_version | Version of your mobile app gathered from Android Studio versionCode in your App/build.gradle and iOS uses kCFBundleVersionKey in Xcode. | | device_os | Device Operating System Version. Example: 80 &#x3D; Chrome 80, 9 &#x3D; Android 9 | | device_type | Device Operating System Type | | device_model | Device Hardware String Code. Example: Mobile Web Subscribers will have &#x60;Linux armv&#x60; | | ad_id | Based on the Google Advertising Id for Android, identifierForVendor for iOS. OptedOut means user turned off Advertising tracking on the device. | | tags | Current OneSignal Data Tags on the device. | | last_active | Date and time the user last opened the mobile app or visited the site. | | playtime | Total amount of time in seconds the user had the mobile app open. | | amount_spent | Mobile only - amount spent in USD on In-App Purchases. | | created_at | Date and time the device record was created in OneSignal. Mobile - first time they opened the app with OneSignal SDK. Web - first time the user subscribed to the site. | | invalid_identifier | t &#x3D; unsubscribed, f &#x3D; subscibed | | badge_count | Current number of badges on the device | - Extra Columns: | Field | Details | | --- | --- | | external_user_id | Your User Id set on the device | | notification_types | Notification types | | location | Location points (Latitude and Longitude) set on the device. | | country | Country code | | rooted | Android device rooted or not | | ip | IP Address of the device if being tracked. See Handling Personal Data. | | web_auth | Web Only authorization key. | | web_p256 | Web Only p256 key. |
232
+ # @param app_id The app ID that you want to export devices from
233
+ # @param [Hash] opts the optional parameters
234
+ # @option opts [ExportPlayersRequestBody] :export_players_request_body
235
+ # @return [ExportPlayersSuccessResponse]
236
+ describe 'export_players test' do
237
+ it 'should work' do
238
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
239
+ end
240
+ end
241
+
242
+ # unit tests for fetch_aliases
243
+ # Lists all Aliases for the User identified by :subscription_id.
244
+ # @param app_id
245
+ # @param subscription_id
246
+ # @param [Hash] opts the optional parameters
247
+ # @return [UserIdentityResponse]
248
+ describe 'fetch_aliases test' do
249
+ it 'should work' do
250
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
251
+ end
252
+ end
253
+
254
+ # unit tests for fetch_user
255
+ # Returns the User’s properties, Aliases, and Subscriptions.
256
+ # @param app_id
257
+ # @param alias_label
258
+ # @param alias_id
259
+ # @param [Hash] opts the optional parameters
260
+ # @return [User]
261
+ describe 'fetch_user test' do
262
+ it 'should work' do
263
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
264
+ end
265
+ end
266
+
267
+ # unit tests for fetch_user_identity
268
+ # Lists all Aliases for the User identified by (:alias_label, :alias_id).
269
+ # @param app_id
270
+ # @param alias_label
271
+ # @param alias_id
272
+ # @param [Hash] opts the optional parameters
273
+ # @return [InlineResponse200]
274
+ describe 'fetch_user_identity test' do
275
+ it 'should work' do
276
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
277
+ end
278
+ end
279
+
280
+ # unit tests for get_app
281
+ # View an app
282
+ # View the details of a single OneSignal app
283
+ # @param app_id An app id
284
+ # @param [Hash] opts the optional parameters
285
+ # @return [App]
286
+ describe 'get_app test' do
287
+ it 'should work' do
288
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
289
+ end
290
+ end
291
+
292
+ # unit tests for get_apps
293
+ # View apps
294
+ # View the details of all of your current OneSignal apps
295
+ # @param [Hash] opts the optional parameters
296
+ # @return [Array<App>]
297
+ describe 'get_apps test' do
298
+ it 'should work' do
299
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
300
+ end
301
+ end
302
+
303
+ # unit tests for get_eligible_iams
304
+ # Manifest of In-App Messages the Subscription is eligible to display by the SDK.
305
+ # @param app_id
306
+ # @param subscription_id
307
+ # @param [Hash] opts the optional parameters
308
+ # @return [InlineResponse2003]
309
+ describe 'get_eligible_iams test' do
310
+ it 'should work' do
311
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
312
+ end
313
+ end
314
+
315
+ # unit tests for get_notification
316
+ # View notification
317
+ # View the details of a single notification and outcomes associated with it
318
+ # @param app_id
319
+ # @param notification_id
320
+ # @param [Hash] opts the optional parameters
321
+ # @return [NotificationWithMeta]
322
+ describe 'get_notification test' do
323
+ it 'should work' do
324
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
325
+ end
326
+ end
327
+
328
+ # unit tests for get_notification_history
329
+ # Notification History
330
+ # -&gt; View the devices sent a message - OneSignal Paid Plan Required This method will return all devices that were sent the given notification_id of an Email or Push Notification if used within 7 days of the date sent. After 7 days of the sending date, the message history data will be unavailable. After a successful response is received, the destination url may be polled until the file becomes available. Most exports are done in ~1-3 minutes, so setting a poll interval of 10 seconds should be adequate. For use cases that are not meant to be consumed by a script, an email will be sent to the supplied email address. &amp;#x1F6A7; Requirements A OneSignal Paid Plan. Turn on Send History via OneSignal API in Settings -&gt; Analytics. Cannot get data before this was turned on. Must be called within 7 days after sending the message. Messages targeting under 1000 recipients will not have \&quot;sent\&quot; events recorded, but will show \&quot;clicked\&quot; events. Requires your OneSignal App&#39;s REST API Key, available in Keys &amp; IDs.
331
+ # @param notification_id The \&quot;id\&quot; of the message found in the Notification object
332
+ # @param get_notification_request_body
333
+ # @param [Hash] opts the optional parameters
334
+ # @return [NotificationHistorySuccessResponse]
335
+ describe 'get_notification_history test' do
336
+ it 'should work' do
337
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
338
+ end
339
+ end
340
+
341
+ # unit tests for get_notifications
342
+ # View notifications
343
+ # View the details of multiple notifications
344
+ # @param app_id The app ID that you want to view notifications from
345
+ # @param [Hash] opts the optional parameters
346
+ # @option opts [Integer] :limit How many notifications to return. Max is 50. Default is 50.
347
+ # @option opts [Integer] :offset Page offset. Default is 0. Results are sorted by queued_at in descending order. queued_at is a representation of the time that the notification was queued at.
348
+ # @option opts [Integer] :kind Kind of notifications returned: * unset - All notification types (default) * &#x60;0&#x60; - Dashboard only * &#x60;1&#x60; - API only * &#x60;3&#x60; - Automated only
349
+ # @return [NotificationSlice]
350
+ describe 'get_notifications test' do
351
+ it 'should work' do
352
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
353
+ end
354
+ end
355
+
356
+ # unit tests for get_outcomes
357
+ # View Outcomes
358
+ # View the details of all the outcomes associated with your app &amp;#x1F6A7; Requires Authentication Key Requires your OneSignal App&#39;s REST API Key, available in Keys &amp; IDs. &amp;#x1F6A7; Outcome Data Limitations Outcomes are only accessible for around 30 days before deleted from our servers. You will need to export this data every month if you want to keep it.
359
+ # @param app_id The OneSignal App ID for your app. Available in Keys &amp; IDs.
360
+ # @param outcome_names Required Comma-separated list of names and the value (sum/count) for the returned outcome data. Note: Clicks only support count aggregation. For out-of-the-box OneSignal outcomes such as click and session duration, please use the \&quot;os\&quot; prefix with two underscores. For other outcomes, please use the name specified by the user. Example:os__session_duration.count,os__click.count,CustomOutcomeName.sum
361
+ # @param [Hash] opts the optional parameters
362
+ # @option opts [String] :outcome_names2 Optional If outcome names contain any commas, then please specify only one value at a time. Example: outcome_names[]&#x3D;os__click.count&amp;outcome_names[]&#x3D;Sales, Purchase.count where \&quot;Sales, Purchase\&quot; is the custom outcomes with a comma in the name.
363
+ # @option opts [String] :outcome_time_range Optional Time range for the returned data. The values can be 1h (for the last 1 hour data), 1d (for the last 1 day data), or 1mo (for the last 1 month data). Default is 1h if the parameter is omitted.
364
+ # @option opts [String] :outcome_platforms Optional Platform id. Refer device&#39;s platform ids for values. Example: outcome_platform&#x3D;0 for iOS outcome_platform&#x3D;7,8 for Safari and Firefox Default is data from all platforms if the parameter is omitted.
365
+ # @option opts [String] :outcome_attribution Optional Attribution type for the outcomes. The values can be direct or influenced or unattributed. Example: outcome_attribution&#x3D;direct Default is total (returns direct+influenced+unattributed) if the parameter is omitted.
366
+ # @return [OutcomesData]
367
+ describe 'get_outcomes test' do
368
+ it 'should work' do
369
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
370
+ end
371
+ end
372
+
373
+ # unit tests for get_player
374
+ # View device
375
+ # View the details of an existing device in one of your OneSignal apps
376
+ # @param app_id Your app_id for this device
377
+ # @param player_id Player&#39;s OneSignal ID
378
+ # @param [Hash] opts the optional parameters
379
+ # @option opts [String] :email_auth_hash Email - Only required if you have enabled Identity Verification and device_type is email (11).
380
+ # @return [Player]
381
+ describe 'get_player test' do
382
+ it 'should work' do
383
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
384
+ end
385
+ end
386
+
387
+ # unit tests for get_players
388
+ # View devices
389
+ # View the details of multiple devices in one of your OneSignal apps Unavailable for Apps Over 80,000 Users For performance reasons, this method is not available for larger apps. Larger apps should use the CSV export API endpoint, which is much more performant.
390
+ # @param app_id The app ID that you want to view players from
391
+ # @param [Hash] opts the optional parameters
392
+ # @option opts [Integer] :limit How many devices to return. Max is 300. Default is 300
393
+ # @option opts [Integer] :offset Result offset. Default is 0. Results are sorted by id;
394
+ # @return [PlayerSlice]
395
+ describe 'get_players test' do
396
+ it 'should work' do
397
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
398
+ end
399
+ end
400
+
401
+ # unit tests for identify_user_by_alias
402
+ # Upserts one or more Aliases to an existing User identified by (:alias_label, :alias_id).
403
+ # @param app_id
404
+ # @param alias_label
405
+ # @param alias_id
406
+ # @param user_identity_request_body
407
+ # @param [Hash] opts the optional parameters
408
+ # @return [InlineResponse200]
409
+ describe 'identify_user_by_alias test' do
410
+ it 'should work' do
411
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
412
+ end
413
+ end
414
+
415
+ # unit tests for identify_user_by_subscription_id
416
+ # Upserts one or more Aliases for the User identified by :subscription_id.
417
+ # @param app_id
418
+ # @param subscription_id
419
+ # @param user_identity_request_body
420
+ # @param [Hash] opts the optional parameters
421
+ # @return [UserIdentityResponse]
422
+ describe 'identify_user_by_subscription_id test' do
423
+ it 'should work' do
424
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
425
+ end
426
+ end
427
+
428
+ # unit tests for transfer_subscription
429
+ # Transfers this Subscription to the User identified by the identity in the payload.
430
+ # @param app_id
431
+ # @param subscription_id
432
+ # @param transfer_subscription_request_body
433
+ # @param [Hash] opts the optional parameters
434
+ # @return [UserIdentityResponse]
435
+ describe 'transfer_subscription test' do
436
+ it 'should work' do
437
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
438
+ end
439
+ end
440
+
441
+ # unit tests for update_app
442
+ # Update an app
443
+ # Updates the name or configuration settings of an existing OneSignal app
444
+ # @param app_id An app id
445
+ # @param app
446
+ # @param [Hash] opts the optional parameters
447
+ # @return [App]
448
+ describe 'update_app test' do
449
+ it 'should work' do
450
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
451
+ end
452
+ end
453
+
454
+ # unit tests for update_live_activity
455
+ # Update a Live Activity via Push
456
+ # Updates a specified live activity.
457
+ # @param app_id The OneSignal App ID for your app. Available in Keys &amp; IDs.
458
+ # @param activity_id Live Activity record ID
459
+ # @param update_live_activity_request
460
+ # @param [Hash] opts the optional parameters
461
+ # @return [UpdateLiveActivitySuccessResponse]
462
+ describe 'update_live_activity test' do
463
+ it 'should work' do
464
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
465
+ end
466
+ end
467
+
468
+ # unit tests for update_player
469
+ # Edit device
470
+ # Update an existing device in one of your OneSignal apps
471
+ # @param player_id Player&#39;s OneSignal ID
472
+ # @param player
473
+ # @param [Hash] opts the optional parameters
474
+ # @return [UpdatePlayerSuccessResponse]
475
+ describe 'update_player test' do
476
+ it 'should work' do
477
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
478
+ end
479
+ end
480
+
481
+ # unit tests for update_player_tags
482
+ # Edit tags with external user id
483
+ # Update an existing device&#39;s tags in one of your OneSignal apps using the External User ID. Warning - Android SDK Data Synchronization Tags added through the Android SDK tagging methods may not update if using the API to change or update the same tag. For example, if you use SDK method sendTag(\&quot;key\&quot;, \&quot;value1\&quot;) then update the tag value to \&quot;value2\&quot; with this API endpoint. You will not be able to set the value back to \&quot;value1\&quot; through the SDK, you will need to change it to something different through the SDK to be reset. Recommendations if using this Endpoint on Android Mobile Apps: 1 - Do not use the same tag keys for SDK and API updates 2 - If you want to use the same key for both SDK and API updates, call the SDK getTags method first to update the device&#39;s tags. This is only applicable on the Android Mobile App SDKs. &amp;#128216; Deleting Tags To delete a tag, include its key and set its value to blank. Omitting a key/value will not delete it. For example, if I wanted to delete two existing tags rank and category while simultaneously adding a new tag class, the tags JSON would look like the following: \&quot;tags\&quot;: { \&quot;rank\&quot;: \&quot;\&quot;, \&quot;category\&quot;: \&quot;\&quot;, \&quot;class\&quot;: \&quot;my_new_value\&quot; }
484
+ # @param app_id The OneSignal App ID the user record is found under.
485
+ # @param external_user_id The External User ID mapped to teh device record in OneSignal. Must be actively set on the device to be updated.
486
+ # @param [Hash] opts the optional parameters
487
+ # @option opts [UpdatePlayerTagsRequestBody] :update_player_tags_request_body
488
+ # @return [UpdatePlayerTagsSuccessResponse]
489
+ describe 'update_player_tags test' do
490
+ it 'should work' do
491
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
492
+ end
493
+ end
494
+
495
+ # unit tests for update_subscription
496
+ # Updates an existing Subscription’s properties.
497
+ # @param app_id
498
+ # @param subscription_id
499
+ # @param update_subscription_request_body
500
+ # @param [Hash] opts the optional parameters
501
+ # @return [nil]
502
+ describe 'update_subscription test' do
503
+ it 'should work' do
504
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
505
+ end
506
+ end
507
+
508
+ # unit tests for update_user
509
+ # Updates an existing User’s properties.
510
+ # @param app_id
511
+ # @param alias_label
512
+ # @param alias_id
513
+ # @param update_user_request
514
+ # @param [Hash] opts the optional parameters
515
+ # @return [InlineResponse202]
516
+ describe 'update_user test' do
517
+ it 'should work' do
518
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
519
+ end
520
+ end
521
+
522
+ end