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.
- checksums.yaml +4 -4
- data/README.md +8 -6
- data/docs/DefaultApi.md +111 -37
- data/docs/SubscriptionObject.md +1 -1
- data/lib/onesignal/api/default_api.rb +1 -1
- data/lib/onesignal/api_client.rb +2 -2
- data/lib/onesignal/api_error.rb +1 -1
- data/lib/onesignal/configuration.rb +3 -3
- data/lib/onesignal/models/app.rb +1 -1
- data/lib/onesignal/models/basic_notification.rb +1 -1
- data/lib/onesignal/models/basic_notification_all_of.rb +1 -1
- data/lib/onesignal/models/basic_notification_all_of_android_background_layout.rb +1 -1
- data/lib/onesignal/models/begin_live_activity_request.rb +1 -1
- data/lib/onesignal/models/button.rb +1 -1
- data/lib/onesignal/models/cancel_notification_success_response.rb +1 -1
- data/lib/onesignal/models/create_notification_success_response.rb +1 -1
- data/lib/onesignal/models/create_player_success_response.rb +1 -1
- data/lib/onesignal/models/create_segment_conflict_response.rb +1 -1
- data/lib/onesignal/models/create_segment_success_response.rb +1 -1
- data/lib/onesignal/models/create_subscription_request_body.rb +1 -1
- data/lib/onesignal/models/create_user_conflict_response.rb +1 -1
- data/lib/onesignal/models/create_user_conflict_response_errors_inner.rb +1 -1
- data/lib/onesignal/models/create_user_conflict_response_errors_items_meta.rb +1 -1
- data/lib/onesignal/models/delete_player_not_found_response.rb +1 -1
- data/lib/onesignal/models/delete_player_success_response.rb +1 -1
- data/lib/onesignal/models/delete_segment_not_found_response.rb +1 -1
- data/lib/onesignal/models/delete_segment_success_response.rb +1 -1
- data/lib/onesignal/models/delivery_data.rb +1 -1
- data/lib/onesignal/models/export_events_success_response.rb +1 -1
- data/lib/onesignal/models/export_players_request_body.rb +1 -1
- data/lib/onesignal/models/export_players_success_response.rb +1 -1
- data/lib/onesignal/models/filter.rb +1 -1
- data/lib/onesignal/models/filter_expressions.rb +1 -1
- data/lib/onesignal/models/generic_error.rb +1 -1
- data/lib/onesignal/models/generic_error_errors_inner.rb +1 -1
- data/lib/onesignal/models/get_notification_request_body.rb +1 -1
- data/lib/onesignal/models/inline_response200.rb +1 -1
- data/lib/onesignal/models/inline_response2003.rb +1 -1
- data/lib/onesignal/models/inline_response201.rb +1 -1
- data/lib/onesignal/models/inline_response202.rb +1 -1
- data/lib/onesignal/models/invalid_identifier_error.rb +1 -1
- data/lib/onesignal/models/notification.rb +1 -1
- data/lib/onesignal/models/notification200_errors.rb +1 -1
- data/lib/onesignal/models/notification_all_of.rb +1 -1
- data/lib/onesignal/models/notification_history_success_response.rb +1 -1
- data/lib/onesignal/models/notification_slice.rb +1 -1
- data/lib/onesignal/models/notification_target.rb +1 -1
- data/lib/onesignal/models/notification_with_meta.rb +1 -1
- data/lib/onesignal/models/notification_with_meta_all_of.rb +1 -1
- data/lib/onesignal/models/operator.rb +1 -1
- data/lib/onesignal/models/outcome_data.rb +1 -1
- data/lib/onesignal/models/outcomes_data.rb +1 -1
- data/lib/onesignal/models/platform_delivery_data.rb +1 -1
- data/lib/onesignal/models/platform_delivery_data_email_all_of.rb +1 -1
- data/lib/onesignal/models/platform_delivery_data_sms_all_of.rb +1 -1
- data/lib/onesignal/models/player.rb +1 -1
- data/lib/onesignal/models/player_notification_target.rb +1 -1
- data/lib/onesignal/models/player_notification_target_include_aliases.rb +1 -1
- data/lib/onesignal/models/player_slice.rb +1 -1
- data/lib/onesignal/models/properties_deltas.rb +1 -1
- data/lib/onesignal/models/properties_object.rb +1 -1
- data/lib/onesignal/models/purchase.rb +1 -1
- data/lib/onesignal/models/rate_limiter_error.rb +1 -1
- data/lib/onesignal/models/segment.rb +1 -1
- data/lib/onesignal/models/segment_notification_target.rb +1 -1
- data/lib/onesignal/models/string_map.rb +1 -1
- data/lib/onesignal/models/subscription_object.rb +2 -2
- data/lib/onesignal/models/transfer_subscription_request_body.rb +1 -1
- data/lib/onesignal/models/update_live_activity_request.rb +1 -1
- data/lib/onesignal/models/update_live_activity_success_response.rb +1 -1
- data/lib/onesignal/models/update_player_success_response.rb +1 -1
- data/lib/onesignal/models/update_player_tags_request_body.rb +1 -1
- data/lib/onesignal/models/update_player_tags_success_response.rb +1 -1
- data/lib/onesignal/models/update_subscription_request_body.rb +1 -1
- data/lib/onesignal/models/update_user_request.rb +1 -1
- data/lib/onesignal/models/user.rb +1 -1
- data/lib/onesignal/models/user_identity_request_body.rb +1 -1
- data/lib/onesignal/models/user_identity_response.rb +1 -1
- data/lib/onesignal/models/user_subscription_options.rb +1 -1
- data/lib/onesignal/version.rb +2 -2
- data/lib/onesignal.rb +1 -1
- data/onesignal.gemspec +1 -1
- data/spec/api/default_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/app_spec.rb +1 -1
- data/spec/models/basic_notification_all_of_android_background_layout_spec.rb +1 -1
- data/spec/models/basic_notification_all_of_spec.rb +1 -1
- data/spec/models/basic_notification_spec.rb +1 -1
- data/spec/models/begin_live_activity_request_spec.rb +1 -1
- data/spec/models/button_spec.rb +1 -1
- data/spec/models/cancel_notification_success_response_spec.rb +1 -1
- data/spec/models/create_notification_success_response_spec.rb +1 -1
- data/spec/models/create_player_success_response_spec.rb +1 -1
- data/spec/models/create_segment_conflict_response_spec.rb +1 -1
- data/spec/models/create_segment_success_response_spec.rb +1 -1
- data/spec/models/create_subscription_request_body_spec.rb +1 -1
- data/spec/models/create_user_conflict_response_errors_inner_spec.rb +1 -1
- data/spec/models/create_user_conflict_response_errors_items_meta_spec.rb +1 -1
- data/spec/models/create_user_conflict_response_spec.rb +1 -1
- data/spec/models/delete_player_not_found_response_spec.rb +1 -1
- data/spec/models/delete_player_success_response_spec.rb +1 -1
- data/spec/models/delete_segment_not_found_response_spec.rb +1 -1
- data/spec/models/delete_segment_success_response_spec.rb +1 -1
- data/spec/models/delivery_data_spec.rb +1 -1
- data/spec/models/export_events_success_response_spec.rb +1 -1
- data/spec/models/export_players_request_body_spec.rb +1 -1
- data/spec/models/export_players_success_response_spec.rb +1 -1
- data/spec/models/filter_expressions_spec.rb +1 -1
- data/spec/models/filter_spec.rb +1 -1
- data/spec/models/generic_error_errors_inner_spec.rb +1 -1
- data/spec/models/generic_error_spec.rb +1 -1
- data/spec/models/get_notification_request_body_spec.rb +1 -1
- data/spec/models/inline_response2003_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/inline_response201_spec.rb +1 -1
- data/spec/models/inline_response202_spec.rb +1 -1
- data/spec/models/invalid_identifier_error_spec.rb +1 -1
- data/spec/models/notification200_errors_spec.rb +1 -1
- data/spec/models/notification_all_of_spec.rb +1 -1
- data/spec/models/notification_history_success_response_spec.rb +1 -1
- data/spec/models/notification_slice_spec.rb +1 -1
- data/spec/models/notification_spec.rb +1 -1
- data/spec/models/notification_target_spec.rb +1 -1
- data/spec/models/notification_with_meta_all_of_spec.rb +1 -1
- data/spec/models/notification_with_meta_spec.rb +1 -1
- data/spec/models/operator_spec.rb +1 -1
- data/spec/models/outcome_data_spec.rb +1 -1
- data/spec/models/outcomes_data_spec.rb +1 -1
- data/spec/models/platform_delivery_data_email_all_of_spec.rb +1 -1
- data/spec/models/platform_delivery_data_sms_all_of_spec.rb +1 -1
- data/spec/models/platform_delivery_data_spec.rb +1 -1
- data/spec/models/player_notification_target_include_aliases_spec.rb +1 -1
- data/spec/models/player_notification_target_spec.rb +1 -1
- data/spec/models/player_slice_spec.rb +1 -1
- data/spec/models/player_spec.rb +1 -1
- data/spec/models/properties_deltas_spec.rb +1 -1
- data/spec/models/properties_object_spec.rb +1 -1
- data/spec/models/purchase_spec.rb +1 -1
- data/spec/models/rate_limiter_error_spec.rb +1 -1
- data/spec/models/segment_notification_target_spec.rb +1 -1
- data/spec/models/segment_spec.rb +1 -1
- data/spec/models/string_map_spec.rb +1 -1
- data/spec/models/subscription_object_spec.rb +1 -1
- data/spec/models/transfer_subscription_request_body_spec.rb +1 -1
- data/spec/models/update_live_activity_request_spec.rb +1 -1
- data/spec/models/update_live_activity_success_response_spec.rb +1 -1
- data/spec/models/update_player_success_response_spec.rb +1 -1
- data/spec/models/update_player_tags_request_body_spec.rb +1 -1
- data/spec/models/update_player_tags_success_response_spec.rb +1 -1
- data/spec/models/update_subscription_request_body_spec.rb +1 -1
- data/spec/models/update_user_request_spec.rb +1 -1
- data/spec/models/user_identity_request_body_spec.rb +1 -1
- data/spec/models/user_identity_response_spec.rb +1 -1
- data/spec/models/user_spec.rb +1 -1
- data/spec/models/user_subscription_options_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +67 -71
- data/Gemfile.lock +0 -74
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 997f117ec5b13d053b2b7a16d2185b9fe3eb68ff2fe9fc4be7b60a9664557c70
|
4
|
+
data.tar.gz: c3ef726d22548453024965021e2a3df1b9d17251f6eca697f1861e0b688dabda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
10
|
-
- Package version: 2.2.
|
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.
|
27
|
+
gem install ./onesignal-2.2.1.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./onesignal-2.2.
|
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.
|
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.
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
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 = '
|
2735
|
+
config.app_key = 'REST_API_KEY' # App REST API key required for most endpoints
|
2662
2736
|
|
2663
2737
|
end
|
2664
2738
|
|
data/docs/SubscriptionObject.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
| **type** | **String** | | [optional] |
|
9
9
|
| **token** | **String** | | [optional] |
|
10
10
|
| **enabled** | **Boolean** | | [optional] |
|
11
|
-
| **notification_types** | **
|
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.
|
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
|
data/lib/onesignal/api_client.rb
CHANGED
@@ -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.
|
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.
|
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] || {}
|
data/lib/onesignal/api_error.rb
CHANGED
@@ -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.
|
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.
|
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
|
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
|
190
|
+
value: "Key \"#{ user_key }\""
|
191
191
|
},
|
192
192
|
}
|
193
193
|
end
|
data/lib/onesignal/models/app.rb
CHANGED
@@ -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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|