onesignal 2.2.0 → 2.2.1

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.
Files changed (159) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -6
  3. data/docs/DefaultApi.md +111 -37
  4. data/docs/SubscriptionObject.md +1 -1
  5. data/lib/onesignal/api/default_api.rb +1 -1
  6. data/lib/onesignal/api_client.rb +2 -2
  7. data/lib/onesignal/api_error.rb +1 -1
  8. data/lib/onesignal/configuration.rb +3 -3
  9. data/lib/onesignal/models/app.rb +1 -1
  10. data/lib/onesignal/models/basic_notification.rb +1 -1
  11. data/lib/onesignal/models/basic_notification_all_of.rb +1 -1
  12. data/lib/onesignal/models/basic_notification_all_of_android_background_layout.rb +1 -1
  13. data/lib/onesignal/models/begin_live_activity_request.rb +1 -1
  14. data/lib/onesignal/models/button.rb +1 -1
  15. data/lib/onesignal/models/cancel_notification_success_response.rb +1 -1
  16. data/lib/onesignal/models/create_notification_success_response.rb +1 -1
  17. data/lib/onesignal/models/create_player_success_response.rb +1 -1
  18. data/lib/onesignal/models/create_segment_conflict_response.rb +1 -1
  19. data/lib/onesignal/models/create_segment_success_response.rb +1 -1
  20. data/lib/onesignal/models/create_subscription_request_body.rb +1 -1
  21. data/lib/onesignal/models/create_user_conflict_response.rb +1 -1
  22. data/lib/onesignal/models/create_user_conflict_response_errors_inner.rb +1 -1
  23. data/lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb +1 -1
  24. data/lib/onesignal/models/delete_player_not_found_response.rb +1 -1
  25. data/lib/onesignal/models/delete_player_success_response.rb +1 -1
  26. data/lib/onesignal/models/delete_segment_not_found_response.rb +1 -1
  27. data/lib/onesignal/models/delete_segment_success_response.rb +1 -1
  28. data/lib/onesignal/models/delivery_data.rb +1 -1
  29. data/lib/onesignal/models/export_events_success_response.rb +1 -1
  30. data/lib/onesignal/models/export_players_request_body.rb +1 -1
  31. data/lib/onesignal/models/export_players_success_response.rb +1 -1
  32. data/lib/onesignal/models/filter.rb +1 -1
  33. data/lib/onesignal/models/filter_expressions.rb +1 -1
  34. data/lib/onesignal/models/generic_error.rb +1 -1
  35. data/lib/onesignal/models/generic_error_errors_inner.rb +1 -1
  36. data/lib/onesignal/models/get_notification_request_body.rb +1 -1
  37. data/lib/onesignal/models/inline_response200.rb +1 -1
  38. data/lib/onesignal/models/inline_response2003.rb +1 -1
  39. data/lib/onesignal/models/inline_response201.rb +1 -1
  40. data/lib/onesignal/models/inline_response202.rb +1 -1
  41. data/lib/onesignal/models/invalid_identifier_error.rb +1 -1
  42. data/lib/onesignal/models/notification.rb +1 -1
  43. data/lib/onesignal/models/notification200_errors.rb +1 -1
  44. data/lib/onesignal/models/notification_all_of.rb +1 -1
  45. data/lib/onesignal/models/notification_history_success_response.rb +1 -1
  46. data/lib/onesignal/models/notification_slice.rb +1 -1
  47. data/lib/onesignal/models/notification_target.rb +1 -1
  48. data/lib/onesignal/models/notification_with_meta.rb +1 -1
  49. data/lib/onesignal/models/notification_with_meta_all_of.rb +1 -1
  50. data/lib/onesignal/models/operator.rb +1 -1
  51. data/lib/onesignal/models/outcome_data.rb +1 -1
  52. data/lib/onesignal/models/outcomes_data.rb +1 -1
  53. data/lib/onesignal/models/platform_delivery_data.rb +1 -1
  54. data/lib/onesignal/models/platform_delivery_data_email_all_of.rb +1 -1
  55. data/lib/onesignal/models/platform_delivery_data_sms_all_of.rb +1 -1
  56. data/lib/onesignal/models/player.rb +1 -1
  57. data/lib/onesignal/models/player_notification_target.rb +1 -1
  58. data/lib/onesignal/models/player_notification_target_include_aliases.rb +1 -1
  59. data/lib/onesignal/models/player_slice.rb +1 -1
  60. data/lib/onesignal/models/properties_deltas.rb +1 -1
  61. data/lib/onesignal/models/properties_object.rb +1 -1
  62. data/lib/onesignal/models/purchase.rb +1 -1
  63. data/lib/onesignal/models/rate_limiter_error.rb +1 -1
  64. data/lib/onesignal/models/segment.rb +1 -1
  65. data/lib/onesignal/models/segment_notification_target.rb +1 -1
  66. data/lib/onesignal/models/string_map.rb +1 -1
  67. data/lib/onesignal/models/subscription_object.rb +2 -2
  68. data/lib/onesignal/models/transfer_subscription_request_body.rb +1 -1
  69. data/lib/onesignal/models/update_live_activity_request.rb +1 -1
  70. data/lib/onesignal/models/update_live_activity_success_response.rb +1 -1
  71. data/lib/onesignal/models/update_player_success_response.rb +1 -1
  72. data/lib/onesignal/models/update_player_tags_request_body.rb +1 -1
  73. data/lib/onesignal/models/update_player_tags_success_response.rb +1 -1
  74. data/lib/onesignal/models/update_subscription_request_body.rb +1 -1
  75. data/lib/onesignal/models/update_user_request.rb +1 -1
  76. data/lib/onesignal/models/user.rb +1 -1
  77. data/lib/onesignal/models/user_identity_request_body.rb +1 -1
  78. data/lib/onesignal/models/user_identity_response.rb +1 -1
  79. data/lib/onesignal/models/user_subscription_options.rb +1 -1
  80. data/lib/onesignal/version.rb +2 -2
  81. data/lib/onesignal.rb +1 -1
  82. data/onesignal.gemspec +1 -1
  83. data/spec/api/default_api_spec.rb +1 -1
  84. data/spec/api_client_spec.rb +1 -1
  85. data/spec/configuration_spec.rb +1 -1
  86. data/spec/models/app_spec.rb +1 -1
  87. data/spec/models/basic_notification_all_of_android_background_layout_spec.rb +1 -1
  88. data/spec/models/basic_notification_all_of_spec.rb +1 -1
  89. data/spec/models/basic_notification_spec.rb +1 -1
  90. data/spec/models/begin_live_activity_request_spec.rb +1 -1
  91. data/spec/models/button_spec.rb +1 -1
  92. data/spec/models/cancel_notification_success_response_spec.rb +1 -1
  93. data/spec/models/create_notification_success_response_spec.rb +1 -1
  94. data/spec/models/create_player_success_response_spec.rb +1 -1
  95. data/spec/models/create_segment_conflict_response_spec.rb +1 -1
  96. data/spec/models/create_segment_success_response_spec.rb +1 -1
  97. data/spec/models/create_subscription_request_body_spec.rb +1 -1
  98. data/spec/models/create_user_conflict_response_errors_inner_spec.rb +1 -1
  99. data/spec/models/create_user_conflict_response_errors_items_meta_spec.rb +1 -1
  100. data/spec/models/create_user_conflict_response_spec.rb +1 -1
  101. data/spec/models/delete_player_not_found_response_spec.rb +1 -1
  102. data/spec/models/delete_player_success_response_spec.rb +1 -1
  103. data/spec/models/delete_segment_not_found_response_spec.rb +1 -1
  104. data/spec/models/delete_segment_success_response_spec.rb +1 -1
  105. data/spec/models/delivery_data_spec.rb +1 -1
  106. data/spec/models/export_events_success_response_spec.rb +1 -1
  107. data/spec/models/export_players_request_body_spec.rb +1 -1
  108. data/spec/models/export_players_success_response_spec.rb +1 -1
  109. data/spec/models/filter_expressions_spec.rb +1 -1
  110. data/spec/models/filter_spec.rb +1 -1
  111. data/spec/models/generic_error_errors_inner_spec.rb +1 -1
  112. data/spec/models/generic_error_spec.rb +1 -1
  113. data/spec/models/get_notification_request_body_spec.rb +1 -1
  114. data/spec/models/inline_response2003_spec.rb +1 -1
  115. data/spec/models/inline_response200_spec.rb +1 -1
  116. data/spec/models/inline_response201_spec.rb +1 -1
  117. data/spec/models/inline_response202_spec.rb +1 -1
  118. data/spec/models/invalid_identifier_error_spec.rb +1 -1
  119. data/spec/models/notification200_errors_spec.rb +1 -1
  120. data/spec/models/notification_all_of_spec.rb +1 -1
  121. data/spec/models/notification_history_success_response_spec.rb +1 -1
  122. data/spec/models/notification_slice_spec.rb +1 -1
  123. data/spec/models/notification_spec.rb +1 -1
  124. data/spec/models/notification_target_spec.rb +1 -1
  125. data/spec/models/notification_with_meta_all_of_spec.rb +1 -1
  126. data/spec/models/notification_with_meta_spec.rb +1 -1
  127. data/spec/models/operator_spec.rb +1 -1
  128. data/spec/models/outcome_data_spec.rb +1 -1
  129. data/spec/models/outcomes_data_spec.rb +1 -1
  130. data/spec/models/platform_delivery_data_email_all_of_spec.rb +1 -1
  131. data/spec/models/platform_delivery_data_sms_all_of_spec.rb +1 -1
  132. data/spec/models/platform_delivery_data_spec.rb +1 -1
  133. data/spec/models/player_notification_target_include_aliases_spec.rb +1 -1
  134. data/spec/models/player_notification_target_spec.rb +1 -1
  135. data/spec/models/player_slice_spec.rb +1 -1
  136. data/spec/models/player_spec.rb +1 -1
  137. data/spec/models/properties_deltas_spec.rb +1 -1
  138. data/spec/models/properties_object_spec.rb +1 -1
  139. data/spec/models/purchase_spec.rb +1 -1
  140. data/spec/models/rate_limiter_error_spec.rb +1 -1
  141. data/spec/models/segment_notification_target_spec.rb +1 -1
  142. data/spec/models/segment_spec.rb +1 -1
  143. data/spec/models/string_map_spec.rb +1 -1
  144. data/spec/models/subscription_object_spec.rb +1 -1
  145. data/spec/models/transfer_subscription_request_body_spec.rb +1 -1
  146. data/spec/models/update_live_activity_request_spec.rb +1 -1
  147. data/spec/models/update_live_activity_success_response_spec.rb +1 -1
  148. data/spec/models/update_player_success_response_spec.rb +1 -1
  149. data/spec/models/update_player_tags_request_body_spec.rb +1 -1
  150. data/spec/models/update_player_tags_success_response_spec.rb +1 -1
  151. data/spec/models/update_subscription_request_body_spec.rb +1 -1
  152. data/spec/models/update_user_request_spec.rb +1 -1
  153. data/spec/models/user_identity_request_body_spec.rb +1 -1
  154. data/spec/models/user_identity_response_spec.rb +1 -1
  155. data/spec/models/user_spec.rb +1 -1
  156. data/spec/models/user_subscription_options_spec.rb +1 -1
  157. data/spec/spec_helper.rb +1 -1
  158. metadata +67 -71
  159. data/Gemfile.lock +0 -74
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d087519e511c69b765b35d1f1c3ba69a245465c670d80e3dd1a69e3c50052a53
4
- data.tar.gz: 6f87d39ff098997f9b4a13a1ed3f65ca570a802ac59934dc627fa79481b8678c
3
+ metadata.gz: 997f117ec5b13d053b2b7a16d2185b9fe3eb68ff2fe9fc4be7b60a9664557c70
4
+ data.tar.gz: c3ef726d22548453024965021e2a3df1b9d17251f6eca697f1861e0b688dabda
5
5
  SHA512:
6
- metadata.gz: 5572c14f560b567879b7ad5b9566bcd0fcb2ff907b695b0ac3d0e75d77856929563e73e4ffd8d0358713449f67dc8e8154ac42f34d99ff795f504a9fbab0aee5
7
- data.tar.gz: 6adfcc757e606b4ac159bd6858e2a6b5e9e4af3fca4ee719d52a5608162c0088abd31f31622c61561363e1e10d863d445b4964a7238f72b096d99c0c56f495bc
6
+ metadata.gz: 846708566dfe100ccf7ec812089806cc62b6d9ee3a02bee4eb991c369efa8d492480135b78568742dc6e6398c1bb88fbffe33cde60844a4c461fed9d534d4e07
7
+ data.tar.gz: '09e8a977df94b04f41801addb07a1ca2275177585fdfa3c4c61f5be9c6b0dc993aba3310970f75ddda7c36a8892cbb613b5496f14f7d3bcad776bccbc0121cbc'
data/README.md CHANGED
@@ -6,8 +6,8 @@ A powerful way to send personalized messages at scale and build effective custom
6
6
 
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
- - API version: 1.4.0
10
- - Package version: 2.2.0
9
+ - API version: 1.4.1
10
+ - Package version: 2.2.1
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://onesignal.com](https://onesignal.com)
13
13
 
@@ -24,16 +24,16 @@ gem build onesignal.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./onesignal-2.2.0.gem
27
+ gem install ./onesignal-2.2.1.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./onesignal-2.2.0.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./onesignal-2.2.1.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'onesignal', '~> 2.2.0'
36
+ gem 'onesignal', '~> 2.2.1'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -59,8 +59,10 @@ require 'onesignal'
59
59
 
60
60
  # Setup authorization
61
61
  OneSignal.configure do |config|
62
+ # Configure Bearer authorization: user_key
63
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
62
64
  # Configure Bearer authorization: app_key
63
- config.access_token = 'YOUR_BEARER_TOKEN'
65
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
64
66
  end
65
67
 
66
68
  api_instance = OneSignal::DefaultApi.new
data/docs/DefaultApi.md CHANGED
@@ -57,8 +57,10 @@ Starts a Live Activity
57
57
  require 'onesignal'
58
58
  # setup authorization
59
59
  OneSignal.configure do |config|
60
+ # Configure Bearer authorization: user_key
61
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
60
62
  # Configure Bearer authorization: app_key
61
- config.app_key = 'YOUR_BEARER_TOKEN'
63
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
62
64
 
63
65
  end
64
66
 
@@ -129,8 +131,10 @@ Used to stop a scheduled or currently outgoing notification
129
131
  require 'onesignal'
130
132
  # setup authorization
131
133
  OneSignal.configure do |config|
134
+ # Configure Bearer authorization: user_key
135
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
132
136
  # Configure Bearer authorization: app_key
133
- config.app_key = 'YOUR_BEARER_TOKEN'
137
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
134
138
 
135
139
  end
136
140
 
@@ -201,7 +205,9 @@ require 'onesignal'
201
205
  # setup authorization
202
206
  OneSignal.configure do |config|
203
207
  # Configure Bearer authorization: user_key
204
- config.user_key = 'YOUR_BEARER_TOKEN'
208
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
209
+ # Configure Bearer authorization: user_key
210
+ config.user_key = 'REST_API_KEY' # App REST API key required for most endpoints
205
211
 
206
212
  end
207
213
 
@@ -269,8 +275,10 @@ Sends notifications to your users
269
275
  require 'onesignal'
270
276
  # setup authorization
271
277
  OneSignal.configure do |config|
278
+ # Configure Bearer authorization: user_key
279
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
272
280
  # Configure Bearer authorization: app_key
273
- config.app_key = 'YOUR_BEARER_TOKEN'
281
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
274
282
 
275
283
  end
276
284
 
@@ -338,8 +346,10 @@ Register a new device to one of your OneSignal apps 🚧 Don't use this Thi
338
346
  require 'onesignal'
339
347
  # setup authorization
340
348
  OneSignal.configure do |config|
349
+ # Configure Bearer authorization: user_key
350
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
341
351
  # Configure Bearer authorization: app_key
342
- config.app_key = 'YOUR_BEARER_TOKEN'
352
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
343
353
 
344
354
  end
345
355
 
@@ -407,8 +417,10 @@ Create segments visible and usable in the dashboard and API - Required: OneSigna
407
417
  require 'onesignal'
408
418
  # setup authorization
409
419
  OneSignal.configure do |config|
420
+ # Configure Bearer authorization: user_key
421
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
410
422
  # Configure Bearer authorization: app_key
411
- config.app_key = 'YOUR_BEARER_TOKEN'
423
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
412
424
 
413
425
  end
414
426
 
@@ -480,8 +492,10 @@ Creates a new Subscription under the User provided. Useful to add email addresse
480
492
  require 'onesignal'
481
493
  # setup authorization
482
494
  OneSignal.configure do |config|
495
+ # Configure Bearer authorization: user_key
496
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
483
497
  # Configure Bearer authorization: app_key
484
- config.app_key = 'YOUR_BEARER_TOKEN'
498
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
485
499
 
486
500
  end
487
501
 
@@ -555,8 +569,10 @@ Creates a User, optionally Subscriptions owned by the User as well as Aliases. A
555
569
  require 'onesignal'
556
570
  # setup authorization
557
571
  OneSignal.configure do |config|
572
+ # Configure Bearer authorization: user_key
573
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
558
574
  # Configure Bearer authorization: app_key
559
- config.app_key = 'YOUR_BEARER_TOKEN'
575
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
560
576
 
561
577
  end
562
578
 
@@ -626,8 +642,10 @@ Deletes an alias by alias label
626
642
  require 'onesignal'
627
643
  # setup authorization
628
644
  OneSignal.configure do |config|
645
+ # Configure Bearer authorization: user_key
646
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
629
647
  # Configure Bearer authorization: app_key
630
- config.app_key = 'YOUR_BEARER_TOKEN'
648
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
631
649
 
632
650
  end
633
651
 
@@ -701,8 +719,10 @@ Delete player - Required: Used to delete a single, specific Player ID record fro
701
719
  require 'onesignal'
702
720
  # setup authorization
703
721
  OneSignal.configure do |config|
722
+ # Configure Bearer authorization: user_key
723
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
704
724
  # Configure Bearer authorization: app_key
705
- config.app_key = 'YOUR_BEARER_TOKEN'
725
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
706
726
 
707
727
  end
708
728
 
@@ -772,8 +792,10 @@ Delete segments (not user devices) - Required: OneSignal Paid Plan You can delet
772
792
  require 'onesignal'
773
793
  # setup authorization
774
794
  OneSignal.configure do |config|
795
+ # Configure Bearer authorization: user_key
796
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
775
797
  # Configure Bearer authorization: app_key
776
- config.app_key = 'YOUR_BEARER_TOKEN'
798
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
777
799
 
778
800
  end
779
801
 
@@ -843,8 +865,10 @@ Deletes the Subscription.
843
865
  require 'onesignal'
844
866
  # setup authorization
845
867
  OneSignal.configure do |config|
868
+ # Configure Bearer authorization: user_key
869
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
846
870
  # Configure Bearer authorization: app_key
847
- config.app_key = 'YOUR_BEARER_TOKEN'
871
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
848
872
 
849
873
  end
850
874
 
@@ -913,8 +937,10 @@ Removes the User identified by (:alias_label, :alias_id), and all Subscriptions
913
937
  require 'onesignal'
914
938
  # setup authorization
915
939
  OneSignal.configure do |config|
940
+ # Configure Bearer authorization: user_key
941
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
916
942
  # Configure Bearer authorization: app_key
917
- config.app_key = 'YOUR_BEARER_TOKEN'
943
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
918
944
 
919
945
  end
920
946
 
@@ -985,8 +1011,10 @@ Stops a Live Activity
985
1011
  require 'onesignal'
986
1012
  # setup authorization
987
1013
  OneSignal.configure do |config|
1014
+ # Configure Bearer authorization: user_key
1015
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
988
1016
  # Configure Bearer authorization: app_key
989
- config.app_key = 'YOUR_BEARER_TOKEN'
1017
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
990
1018
 
991
1019
  end
992
1020
 
@@ -1057,8 +1085,10 @@ Generate a compressed CSV report of all of the events data for a notification. T
1057
1085
  require 'onesignal'
1058
1086
  # setup authorization
1059
1087
  OneSignal.configure do |config|
1088
+ # Configure Bearer authorization: user_key
1089
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
1060
1090
  # Configure Bearer authorization: app_key
1061
- config.app_key = 'YOUR_BEARER_TOKEN'
1091
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
1062
1092
 
1063
1093
  end
1064
1094
 
@@ -1128,8 +1158,10 @@ Generate a compressed CSV export of all of your current user data This method ca
1128
1158
  require 'onesignal'
1129
1159
  # setup authorization
1130
1160
  OneSignal.configure do |config|
1161
+ # Configure Bearer authorization: user_key
1162
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
1131
1163
  # Configure Bearer authorization: app_key
1132
- config.app_key = 'YOUR_BEARER_TOKEN'
1164
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
1133
1165
 
1134
1166
  end
1135
1167
 
@@ -1201,8 +1233,10 @@ Lists all Aliases for the User identified by :subscription_id.
1201
1233
  require 'onesignal'
1202
1234
  # setup authorization
1203
1235
  OneSignal.configure do |config|
1236
+ # Configure Bearer authorization: user_key
1237
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
1204
1238
  # Configure Bearer authorization: app_key
1205
- config.app_key = 'YOUR_BEARER_TOKEN'
1239
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
1206
1240
 
1207
1241
  end
1208
1242
 
@@ -1272,8 +1306,10 @@ Returns the User’s properties, Aliases, and Subscriptions.
1272
1306
  require 'onesignal'
1273
1307
  # setup authorization
1274
1308
  OneSignal.configure do |config|
1309
+ # Configure Bearer authorization: user_key
1310
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
1275
1311
  # Configure Bearer authorization: app_key
1276
- config.app_key = 'YOUR_BEARER_TOKEN'
1312
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
1277
1313
 
1278
1314
  end
1279
1315
 
@@ -1345,8 +1381,10 @@ Lists all Aliases for the User identified by (:alias_label, :alias_id).
1345
1381
  require 'onesignal'
1346
1382
  # setup authorization
1347
1383
  OneSignal.configure do |config|
1384
+ # Configure Bearer authorization: user_key
1385
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
1348
1386
  # Configure Bearer authorization: app_key
1349
- config.app_key = 'YOUR_BEARER_TOKEN'
1387
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
1350
1388
 
1351
1389
  end
1352
1390
 
@@ -1419,7 +1457,9 @@ require 'onesignal'
1419
1457
  # setup authorization
1420
1458
  OneSignal.configure do |config|
1421
1459
  # Configure Bearer authorization: user_key
1422
- config.user_key = 'YOUR_BEARER_TOKEN'
1460
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
1461
+ # Configure Bearer authorization: user_key
1462
+ config.user_key = 'REST_API_KEY' # App REST API key required for most endpoints
1423
1463
 
1424
1464
  end
1425
1465
 
@@ -1488,7 +1528,9 @@ require 'onesignal'
1488
1528
  # setup authorization
1489
1529
  OneSignal.configure do |config|
1490
1530
  # Configure Bearer authorization: user_key
1491
- config.user_key = 'YOUR_BEARER_TOKEN'
1531
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
1532
+ # Configure Bearer authorization: user_key
1533
+ config.user_key = 'REST_API_KEY' # App REST API key required for most endpoints
1492
1534
 
1493
1535
  end
1494
1536
 
@@ -1553,8 +1595,10 @@ Manifest of In-App Messages the Subscription is eligible to display by the SDK.
1553
1595
  require 'onesignal'
1554
1596
  # setup authorization
1555
1597
  OneSignal.configure do |config|
1598
+ # Configure Bearer authorization: user_key
1599
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
1556
1600
  # Configure Bearer authorization: app_key
1557
- config.app_key = 'YOUR_BEARER_TOKEN'
1601
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
1558
1602
 
1559
1603
  end
1560
1604
 
@@ -1624,8 +1668,10 @@ View the details of a single notification and outcomes associated with it
1624
1668
  require 'onesignal'
1625
1669
  # setup authorization
1626
1670
  OneSignal.configure do |config|
1671
+ # Configure Bearer authorization: user_key
1672
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
1627
1673
  # Configure Bearer authorization: app_key
1628
- config.app_key = 'YOUR_BEARER_TOKEN'
1674
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
1629
1675
 
1630
1676
  end
1631
1677
 
@@ -1695,8 +1741,10 @@ Notification History
1695
1741
  require 'onesignal'
1696
1742
  # setup authorization
1697
1743
  OneSignal.configure do |config|
1744
+ # Configure Bearer authorization: user_key
1745
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
1698
1746
  # Configure Bearer authorization: app_key
1699
- config.app_key = 'YOUR_BEARER_TOKEN'
1747
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
1700
1748
 
1701
1749
  end
1702
1750
 
@@ -1766,8 +1814,10 @@ View the details of multiple notifications
1766
1814
  require 'onesignal'
1767
1815
  # setup authorization
1768
1816
  OneSignal.configure do |config|
1817
+ # Configure Bearer authorization: user_key
1818
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
1769
1819
  # Configure Bearer authorization: app_key
1770
- config.app_key = 'YOUR_BEARER_TOKEN'
1820
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
1771
1821
 
1772
1822
  end
1773
1823
 
@@ -1843,8 +1893,10 @@ View the details of all the outcomes associated with your app 🚧 Require
1843
1893
  require 'onesignal'
1844
1894
  # setup authorization
1845
1895
  OneSignal.configure do |config|
1896
+ # Configure Bearer authorization: user_key
1897
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
1846
1898
  # Configure Bearer authorization: app_key
1847
- config.app_key = 'YOUR_BEARER_TOKEN'
1899
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
1848
1900
 
1849
1901
  end
1850
1902
 
@@ -1924,8 +1976,10 @@ View the details of an existing device in one of your OneSignal apps
1924
1976
  require 'onesignal'
1925
1977
  # setup authorization
1926
1978
  OneSignal.configure do |config|
1979
+ # Configure Bearer authorization: user_key
1980
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
1927
1981
  # Configure Bearer authorization: app_key
1928
- config.app_key = 'YOUR_BEARER_TOKEN'
1982
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
1929
1983
 
1930
1984
  end
1931
1985
 
@@ -1999,8 +2053,10 @@ View the details of multiple devices in one of your OneSignal apps Unavailable f
1999
2053
  require 'onesignal'
2000
2054
  # setup authorization
2001
2055
  OneSignal.configure do |config|
2056
+ # Configure Bearer authorization: user_key
2057
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
2002
2058
  # Configure Bearer authorization: app_key
2003
- config.app_key = 'YOUR_BEARER_TOKEN'
2059
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
2004
2060
 
2005
2061
  end
2006
2062
 
@@ -2074,8 +2130,10 @@ Upserts one or more Aliases to an existing User identified by (:alias_label, :al
2074
2130
  require 'onesignal'
2075
2131
  # setup authorization
2076
2132
  OneSignal.configure do |config|
2133
+ # Configure Bearer authorization: user_key
2134
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
2077
2135
  # Configure Bearer authorization: app_key
2078
- config.app_key = 'YOUR_BEARER_TOKEN'
2136
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
2079
2137
 
2080
2138
  end
2081
2139
 
@@ -2149,8 +2207,10 @@ Upserts one or more Aliases for the User identified by :subscription_id.
2149
2207
  require 'onesignal'
2150
2208
  # setup authorization
2151
2209
  OneSignal.configure do |config|
2210
+ # Configure Bearer authorization: user_key
2211
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
2152
2212
  # Configure Bearer authorization: app_key
2153
- config.app_key = 'YOUR_BEARER_TOKEN'
2213
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
2154
2214
 
2155
2215
  end
2156
2216
 
@@ -2222,8 +2282,10 @@ Transfers this Subscription to the User identified by the identity in the payloa
2222
2282
  require 'onesignal'
2223
2283
  # setup authorization
2224
2284
  OneSignal.configure do |config|
2285
+ # Configure Bearer authorization: user_key
2286
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
2225
2287
  # Configure Bearer authorization: app_key
2226
- config.app_key = 'YOUR_BEARER_TOKEN'
2288
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
2227
2289
 
2228
2290
  end
2229
2291
 
@@ -2296,7 +2358,9 @@ require 'onesignal'
2296
2358
  # setup authorization
2297
2359
  OneSignal.configure do |config|
2298
2360
  # Configure Bearer authorization: user_key
2299
- config.user_key = 'YOUR_BEARER_TOKEN'
2361
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
2362
+ # Configure Bearer authorization: user_key
2363
+ config.user_key = 'REST_API_KEY' # App REST API key required for most endpoints
2300
2364
 
2301
2365
  end
2302
2366
 
@@ -2366,8 +2430,10 @@ Updates a specified live activity.
2366
2430
  require 'onesignal'
2367
2431
  # setup authorization
2368
2432
  OneSignal.configure do |config|
2433
+ # Configure Bearer authorization: user_key
2434
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
2369
2435
  # Configure Bearer authorization: app_key
2370
- config.app_key = 'YOUR_BEARER_TOKEN'
2436
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
2371
2437
 
2372
2438
  end
2373
2439
 
@@ -2439,8 +2505,10 @@ Update an existing device in one of your OneSignal apps
2439
2505
  require 'onesignal'
2440
2506
  # setup authorization
2441
2507
  OneSignal.configure do |config|
2508
+ # Configure Bearer authorization: user_key
2509
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
2442
2510
  # Configure Bearer authorization: app_key
2443
- config.app_key = 'YOUR_BEARER_TOKEN'
2511
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
2444
2512
 
2445
2513
  end
2446
2514
 
@@ -2510,8 +2578,10 @@ Update an existing device's tags in one of your OneSignal apps using the Externa
2510
2578
  require 'onesignal'
2511
2579
  # setup authorization
2512
2580
  OneSignal.configure do |config|
2581
+ # Configure Bearer authorization: user_key
2582
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
2513
2583
  # Configure Bearer authorization: app_key
2514
- config.app_key = 'YOUR_BEARER_TOKEN'
2584
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
2515
2585
 
2516
2586
  end
2517
2587
 
@@ -2585,8 +2655,10 @@ Updates an existing Subscription’s properties.
2585
2655
  require 'onesignal'
2586
2656
  # setup authorization
2587
2657
  OneSignal.configure do |config|
2658
+ # Configure Bearer authorization: user_key
2659
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
2588
2660
  # Configure Bearer authorization: app_key
2589
- config.app_key = 'YOUR_BEARER_TOKEN'
2661
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
2590
2662
 
2591
2663
  end
2592
2664
 
@@ -2657,8 +2729,10 @@ Updates an existing User’s properties.
2657
2729
  require 'onesignal'
2658
2730
  # setup authorization
2659
2731
  OneSignal.configure do |config|
2732
+ # Configure Bearer authorization: user_key
2733
+ config.user_key = 'ORGANIZATION_API_KEY' # Organization key is only required for creating new apps and other top-level endpoints
2660
2734
  # Configure Bearer authorization: app_key
2661
- config.app_key = 'YOUR_BEARER_TOKEN'
2735
+ config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
2662
2736
 
2663
2737
  end
2664
2738
 
@@ -8,7 +8,7 @@
8
8
  | **type** | **String** | | [optional] |
9
9
  | **token** | **String** | | [optional] |
10
10
  | **enabled** | **Boolean** | | [optional] |
11
- | **notification_types** | **Float** | | [optional] |
11
+ | **notification_types** | **Integer** | | [optional] |
12
12
  | **session_time** | **Float** | | [optional] |
13
13
  | **session_count** | **Float** | | [optional] |
14
14
  | **sdk** | **String** | | [optional] |
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 1.4.0
6
+ The version of the OpenAPI document: 1.4.1
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 1.4.0
6
+ The version of the OpenAPI document: 1.4.1
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -90,7 +90,7 @@ module OneSignal
90
90
  url = build_request_url(path, opts)
91
91
  http_method = http_method.to_sym.downcase
92
92
 
93
- opts[:header_params]['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-ruby, version=2.2.0'
93
+ opts[:header_params]['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-ruby, version=2.2.1'
94
94
  header_params = @default_headers.merge(opts[:header_params] || {})
95
95
  query_params = opts[:query_params] || {}
96
96
  form_params = opts[:form_params] || {}
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 1.4.0
6
+ The version of the OpenAPI document: 1.4.1
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 1.4.0
6
+ The version of the OpenAPI document: 1.4.1
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -180,14 +180,14 @@ module OneSignal
180
180
  type: 'bearer',
181
181
  in: 'header',
182
182
  key: 'Authorization',
183
- value: "Key token=\"#{ app_key }\""
183
+ value: "Key \"#{ app_key }\""
184
184
  },
185
185
  'user_key' =>
186
186
  {
187
187
  type: 'bearer',
188
188
  in: 'header',
189
189
  key: 'Authorization',
190
- value: "Key token=\"#{ user_key }\""
190
+ value: "Key \"#{ user_key }\""
191
191
  },
192
192
  }
193
193
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 1.4.0
6
+ The version of the OpenAPI document: 1.4.1
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 1.4.0
6
+ The version of the OpenAPI document: 1.4.1
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 1.4.0
6
+ The version of the OpenAPI document: 1.4.1
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 1.4.0
6
+ The version of the OpenAPI document: 1.4.1
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 1.4.0
6
+ The version of the OpenAPI document: 1.4.1
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 1.4.0
6
+ The version of the OpenAPI document: 1.4.1
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 1.4.0
6
+ The version of the OpenAPI document: 1.4.1
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 1.4.0
6
+ The version of the OpenAPI document: 1.4.1
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 1.4.0
6
+ The version of the OpenAPI document: 1.4.1
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5
5
 
6
- The version of the OpenAPI document: 1.4.0
6
+ The version of the OpenAPI document: 1.4.1
7
7
  Contact: devrel@onesignal.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0-SNAPSHOT