onesignal 5.8.0 → 5.9.0
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/AGENTS.md +66 -0
- data/CHANGELOG.md +7 -0
- data/CLAUDE.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +5 -3
- data/docs/ApiKeyToken.md +6 -6
- data/docs/ApiKeyTokensListResponse.md +1 -1
- data/docs/App.md +34 -34
- data/docs/BasicNotification.md +117 -117
- data/docs/BasicNotificationAllOf.md +103 -103
- data/docs/BasicNotificationAllOfAndroidBackgroundLayout.md +3 -3
- data/docs/Button.md +3 -3
- data/docs/CopyTemplateRequest.md +1 -1
- data/docs/CreateApiKeyRequest.md +3 -3
- data/docs/CreateApiKeyResponse.md +2 -2
- data/docs/CreateNotificationSuccessResponse.md +3 -3
- data/docs/CreateSegmentConflictResponse.md +2 -2
- data/docs/CreateSegmentSuccessResponse.md +2 -2
- data/docs/CreateTemplateRequest.md +11 -11
- data/docs/CreateUserConflictResponse.md +1 -1
- data/docs/CreateUserConflictResponseErrorsInner.md +3 -3
- data/docs/CreateUserConflictResponseErrorsItemsMeta.md +1 -1
- data/docs/CustomEvent.md +5 -5
- data/docs/CustomEventsRequest.md +1 -1
- data/docs/DefaultApi.md +87 -85
- data/docs/DeliveryData.md +5 -5
- data/docs/ExportEventsSuccessResponse.md +1 -1
- data/docs/ExportSubscriptionsRequestBody.md +3 -3
- data/docs/ExportSubscriptionsSuccessResponse.md +1 -1
- data/docs/Filter.md +8 -8
- data/docs/GenericError.md +3 -3
- data/docs/GenericSuccessBoolResponse.md +1 -1
- data/docs/GetNotificationHistoryRequestBody.md +3 -3
- data/docs/GetSegmentsSuccessResponse.md +4 -4
- data/docs/LanguageStringMap.md +43 -43
- data/docs/Notification.md +118 -118
- data/docs/NotificationAllOf.md +1 -1
- data/docs/NotificationHistorySuccessResponse.md +2 -2
- data/docs/NotificationSlice.md +6 -6
- data/docs/NotificationTarget.md +14 -14
- data/docs/NotificationWithMeta.md +130 -130
- data/docs/NotificationWithMetaAllOf.md +14 -14
- data/docs/Operator.md +1 -1
- data/docs/OutcomeData.md +3 -3
- data/docs/OutcomesData.md +1 -1
- data/docs/PlatformDeliveryData.md +8 -8
- data/docs/PlatformDeliveryDataEmailAllOf.md +7 -7
- data/docs/PlatformDeliveryDataSmsAllOf.md +3 -3
- data/docs/PropertiesBody.md +1 -1
- data/docs/PropertiesDeltas.md +3 -3
- data/docs/PropertiesObject.md +11 -11
- data/docs/Purchase.md +4 -4
- data/docs/RateLimitError.md +2 -2
- data/docs/Segment.md +3 -3
- data/docs/SegmentData.md +7 -7
- data/docs/SegmentNotificationTarget.md +2 -2
- data/docs/StartLiveActivityRequest.md +16 -16
- data/docs/StartLiveActivitySuccessResponse.md +1 -1
- data/docs/Subscription.md +17 -17
- data/docs/SubscriptionBody.md +1 -1
- data/docs/SubscriptionNotificationTarget.md +12 -12
- data/docs/TemplateResource.md +6 -6
- data/docs/TemplatesListResponse.md +1 -1
- data/docs/TransferSubscriptionRequestBody.md +1 -1
- data/docs/UpdateApiKeyRequest.md +3 -3
- data/docs/UpdateLiveActivityRequest.md +9 -9
- data/docs/UpdateLiveActivitySuccessResponse.md +1 -1
- data/docs/UpdateTemplateRequest.md +10 -10
- data/docs/UpdateUserRequest.md +3 -3
- data/docs/User.md +3 -3
- data/docs/UserIdentityBody.md +1 -1
- data/docs/WebButton.md +4 -4
- 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 +1 -1
- data/lib/onesignal/models/api_key_token.rb +1 -1
- data/lib/onesignal/models/api_key_tokens_list_response.rb +1 -1
- data/lib/onesignal/models/app.rb +1 -1
- data/lib/onesignal/models/basic_notification.rb +2 -1
- data/lib/onesignal/models/basic_notification_all_of.rb +2 -1
- data/lib/onesignal/models/basic_notification_all_of_android_background_layout.rb +1 -1
- data/lib/onesignal/models/button.rb +1 -1
- data/lib/onesignal/models/copy_template_request.rb +1 -1
- data/lib/onesignal/models/create_api_key_request.rb +1 -1
- data/lib/onesignal/models/create_api_key_response.rb +1 -1
- data/lib/onesignal/models/create_notification_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_template_request.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/custom_event.rb +1 -1
- data/lib/onesignal/models/custom_events_request.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_subscriptions_request_body.rb +1 -1
- data/lib/onesignal/models/export_subscriptions_success_response.rb +1 -1
- data/lib/onesignal/models/filter.rb +1 -1
- data/lib/onesignal/models/filter_expression.rb +1 -1
- data/lib/onesignal/models/generic_error.rb +1 -1
- data/lib/onesignal/models/generic_success_bool_response.rb +1 -1
- data/lib/onesignal/models/get_notification_history_request_body.rb +1 -1
- data/lib/onesignal/models/get_segments_success_response.rb +1 -1
- data/lib/onesignal/models/language_string_map.rb +1 -1
- data/lib/onesignal/models/notification.rb +2 -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 +2 -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/properties_body.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_limit_error.rb +1 -1
- data/lib/onesignal/models/segment.rb +1 -1
- data/lib/onesignal/models/segment_data.rb +1 -1
- data/lib/onesignal/models/segment_notification_target.rb +1 -1
- data/lib/onesignal/models/start_live_activity_request.rb +1 -1
- data/lib/onesignal/models/start_live_activity_success_response.rb +1 -1
- data/lib/onesignal/models/subscription.rb +1 -1
- data/lib/onesignal/models/subscription_body.rb +1 -1
- data/lib/onesignal/models/subscription_notification_target.rb +1 -1
- data/lib/onesignal/models/template_resource.rb +1 -1
- data/lib/onesignal/models/templates_list_response.rb +1 -1
- data/lib/onesignal/models/transfer_subscription_request_body.rb +1 -1
- data/lib/onesignal/models/update_api_key_request.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_template_request.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_body.rb +1 -1
- data/lib/onesignal/models/web_button.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/api_key_token_spec.rb +1 -1
- data/spec/models/api_key_tokens_list_response_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/button_spec.rb +1 -1
- data/spec/models/copy_template_request_spec.rb +1 -1
- data/spec/models/create_api_key_request_spec.rb +1 -1
- data/spec/models/create_api_key_response_spec.rb +1 -1
- data/spec/models/create_notification_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_template_request_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/custom_event_spec.rb +1 -1
- data/spec/models/custom_events_request_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_subscriptions_request_body_spec.rb +1 -1
- data/spec/models/export_subscriptions_success_response_spec.rb +1 -1
- data/spec/models/filter_expression_spec.rb +1 -1
- data/spec/models/filter_spec.rb +1 -1
- data/spec/models/generic_error_spec.rb +1 -1
- data/spec/models/generic_success_bool_response_spec.rb +1 -1
- data/spec/models/get_notification_history_request_body_spec.rb +1 -1
- data/spec/models/get_segments_success_response_spec.rb +1 -1
- data/spec/models/language_string_map_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/properties_body_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_limit_error_spec.rb +1 -1
- data/spec/models/segment_data_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/start_live_activity_request_spec.rb +1 -1
- data/spec/models/start_live_activity_success_response_spec.rb +1 -1
- data/spec/models/subscription_body_spec.rb +1 -1
- data/spec/models/subscription_notification_target_spec.rb +1 -1
- data/spec/models/subscription_spec.rb +1 -1
- data/spec/models/template_resource_spec.rb +1 -1
- data/spec/models/templates_list_response_spec.rb +1 -1
- data/spec/models/transfer_subscription_request_body_spec.rb +1 -1
- data/spec/models/update_api_key_request_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_template_request_spec.rb +1 -1
- data/spec/models/update_user_request_spec.rb +1 -1
- data/spec/models/user_identity_body_spec.rb +1 -1
- data/spec/models/user_spec.rb +1 -1
- data/spec/models/web_button_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.8.2/mkmf.log +3 -3
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.4.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6f0c493c9776b8f47b129a89f0eafb238913d5c273fb9d862a6d8b8679a53175
|
|
4
|
+
data.tar.gz: 9a9c1449f271fa6d491b8c56ce26d4bef0a6ac096cf7e7bb92de386952efed5e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 149da07e3088478de466abed41eb2b73ca48d304ca4dbcab483d24bca24028d689557003e1c6fb32a6e6d24e59f6d8f045ec39d89f403a3c17019c1461133ea8
|
|
7
|
+
data.tar.gz: '01682a3ca520c4e75655f2f537af2d5bee89aa199136ae1c0f54a4a00b5c2998c660e05e99b79892368eb605964913631ba3aba1ab7abb8309cc6a8d4161aaf0'
|
data/AGENTS.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# AGENTS.md — OneSignal Ruby SDK
|
|
2
|
+
|
|
3
|
+
Integration guide for AI agents and LLMs using the `onesignal` gem, the OneSignal server SDK for Ruby. Human-oriented docs are in the [README](./README.md).
|
|
4
|
+
|
|
5
|
+
## What this SDK does
|
|
6
|
+
|
|
7
|
+
Server-side access to the OneSignal REST API: send push / email / SMS, manage users, subscriptions, segments, templates and live activities, and administer apps & API keys.
|
|
8
|
+
|
|
9
|
+
- Gem: `onesignal`
|
|
10
|
+
- Repository: https://github.com/OneSignal/onesignal-ruby-api
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
gem install onesignal
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Authentication — two key types
|
|
19
|
+
|
|
20
|
+
OneSignal uses two bearer credentials; each endpoint requires a specific one:
|
|
21
|
+
|
|
22
|
+
- **REST API key** — used by almost every endpoint (notifications, users, subscriptions, segments, templates, live activities, custom events). Found in **App Settings → Keys & IDs**.
|
|
23
|
+
- **Organization API key** — required *only* for organization-level endpoints: app management (list / create / get / update apps), API-key management (view / create / update / rotate / delete API keys), and copying a template to another app. Found in **Organization Settings**.
|
|
24
|
+
|
|
25
|
+
Configure both; the SDK sends the correct credential per endpoint. Never hard-code keys — read them from environment variables or a secrets manager.
|
|
26
|
+
|
|
27
|
+
```ruby
|
|
28
|
+
require 'onesignal'
|
|
29
|
+
|
|
30
|
+
OneSignal.configure do |config|
|
|
31
|
+
config.rest_api_key = ENV['ONESIGNAL_REST_API_KEY']
|
|
32
|
+
config.organization_api_key = ENV['ONESIGNAL_ORGANIZATION_API_KEY']
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
client = OneSignal::DefaultApi.new
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Calling convention
|
|
39
|
+
|
|
40
|
+
Methods take **positional arguments**. Build the model object and pass it directly — do **not** wrap arguments in a request/options object.
|
|
41
|
+
|
|
42
|
+
```ruby
|
|
43
|
+
notification = OneSignal::Notification.new
|
|
44
|
+
notification.app_id = 'YOUR_APP_ID'
|
|
45
|
+
notification.contents = OneSignal::LanguageStringMap.new({ en: 'Hello from OneSignal!' })
|
|
46
|
+
notification.include_aliases = { 'external_id' => ['YOUR_USER_EXTERNAL_ID'] }
|
|
47
|
+
notification.target_channel = 'push'
|
|
48
|
+
|
|
49
|
+
response = client.create_notification(notification)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Idempotent sends & retries
|
|
53
|
+
|
|
54
|
+
Set `idempotency_key` (a UUID) so a create-notification request can be safely retried — the server returns the original result instead of sending twice. The `create_notification_with_retry` helper handles this for you: it generates an `idempotency_key` when absent, retries `429` / `503` / transport errors with the **same** key (honoring `Retry-After`), and reports via `was_replayed` whether the server answered from a previously completed request.
|
|
55
|
+
|
|
56
|
+
```ruby
|
|
57
|
+
result = client.create_notification_with_retry(notification, max_retries: 5, base_delay: 1.0)
|
|
58
|
+
puts "id: #{result.response.id}, replayed: #{result.was_replayed}"
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
> The notification-level `external_id` field is the **deprecated** idempotency mechanism — prefer `idempotency_key`. Don't confuse it with the `external_id` **alias label** (under `include_aliases`) used to target users.
|
|
62
|
+
|
|
63
|
+
## Full API reference
|
|
64
|
+
|
|
65
|
+
- [DefaultApi.md](https://github.com/OneSignal/onesignal-ruby-api/blob/master/docs/DefaultApi.md) — every endpoint, parameter, and model, with runnable examples.
|
|
66
|
+
- [OneSignal REST API reference](https://documentation.onesignal.com/reference)
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [5.8.0](https://github.com/OneSignal/onesignal-ruby-api/compare/v5.7.0...v5.8.0) (2026-06-24)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add v5.8.0 package updates ([1650946](https://github.com/OneSignal/onesignal-ruby-api/commit/1650946a73bb8931013d03b9fa0f27e72f4c9611))
|
|
8
|
+
* add v5.8.0 package updates ([#105](https://github.com/OneSignal/onesignal-ruby-api/issues/105)) ([9fa7d3b](https://github.com/OneSignal/onesignal-ruby-api/commit/9fa7d3bacf638218be26ffc47b57dbd6079c3f9f)), closes [OneSignal/api-client-libraries#402](https://github.com/OneSignal/api-client-libraries/issues/402) [OneSignal/api-client-libraries#401](https://github.com/OneSignal/api-client-libraries/issues/401) [OneSignal/api-client-libraries#400](https://github.com/OneSignal/api-client-libraries/issues/400)
|
|
9
|
+
|
|
3
10
|
## [5.7.0](https://github.com/OneSignal/onesignal-ruby-api/compare/v5.6.0...v5.7.0) (2026-06-18)
|
|
4
11
|
|
|
5
12
|
### Features
|
data/CLAUDE.md
ADDED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -2,17 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
OneSignal - the Ruby gem for OneSignal
|
|
4
4
|
|
|
5
|
+
> **Building with an AI agent or LLM?** See [AGENTS.md](https://github.com/OneSignal/onesignal-ruby-api/blob/master/AGENTS.md) for an agent-oriented integration guide — authentication, calling conventions, idempotent retries, and the full API reference.
|
|
6
|
+
|
|
5
7
|
A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
6
8
|
|
|
7
|
-
- API version: 5.
|
|
8
|
-
- Package version: 5.
|
|
9
|
+
- API version: 5.9.0
|
|
10
|
+
- Package version: 5.9.0
|
|
9
11
|
|
|
10
12
|
## Installation
|
|
11
13
|
|
|
12
14
|
Add to your `Gemfile`:
|
|
13
15
|
|
|
14
16
|
```ruby
|
|
15
|
-
gem 'onesignal', '~> 5.
|
|
17
|
+
gem 'onesignal', '~> 5.9.0'
|
|
16
18
|
```
|
|
17
19
|
|
|
18
20
|
Then run `bundle install`.
|
data/docs/ApiKeyToken.md
CHANGED
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
require 'onesignal'
|
|
18
18
|
|
|
19
19
|
instance = OneSignal::ApiKeyToken.new(
|
|
20
|
-
token_id:
|
|
21
|
-
updated_at:
|
|
22
|
-
created_at:
|
|
23
|
-
name:
|
|
24
|
-
ip_allowlist_mode:
|
|
25
|
-
ip_allowlist:
|
|
20
|
+
token_id: nil,
|
|
21
|
+
updated_at: nil,
|
|
22
|
+
created_at: nil,
|
|
23
|
+
name: nil,
|
|
24
|
+
ip_allowlist_mode: nil,
|
|
25
|
+
ip_allowlist: nil
|
|
26
26
|
)
|
|
27
27
|
```
|
|
28
28
|
|
data/docs/App.md
CHANGED
|
@@ -45,40 +45,40 @@
|
|
|
45
45
|
require 'onesignal'
|
|
46
46
|
|
|
47
47
|
instance = OneSignal::App.new(
|
|
48
|
-
id:
|
|
49
|
-
name:
|
|
50
|
-
players:
|
|
51
|
-
messageable_players:
|
|
52
|
-
updated_at:
|
|
53
|
-
created_at:
|
|
54
|
-
android_gcm_sender_id:
|
|
55
|
-
gcm_key:
|
|
56
|
-
chrome_web_origin:
|
|
57
|
-
chrome_key:
|
|
58
|
-
chrome_web_default_notification_icon:
|
|
59
|
-
chrome_web_sub_domain:
|
|
60
|
-
apns_env:
|
|
61
|
-
apns_p12:
|
|
62
|
-
apns_p12_password:
|
|
63
|
-
apns_certificates:
|
|
64
|
-
safari_apns_certificates:
|
|
65
|
-
safari_apns_p12:
|
|
66
|
-
safari_apns_p12_password:
|
|
67
|
-
apns_key_id:
|
|
68
|
-
apns_team_id:
|
|
69
|
-
apns_bundle_id:
|
|
70
|
-
apns_p8:
|
|
71
|
-
safari_site_origin:
|
|
72
|
-
safari_push_id:
|
|
73
|
-
safari_icon_16_16:
|
|
74
|
-
safari_icon_32_32:
|
|
75
|
-
safari_icon_64_64:
|
|
76
|
-
safari_icon_128_128:
|
|
77
|
-
safari_icon_256_256:
|
|
78
|
-
site_name:
|
|
79
|
-
basic_auth_key:
|
|
80
|
-
organization_id:
|
|
81
|
-
additional_data_is_root_payload:
|
|
48
|
+
id: nil,
|
|
49
|
+
name: nil,
|
|
50
|
+
players: nil,
|
|
51
|
+
messageable_players: nil,
|
|
52
|
+
updated_at: nil,
|
|
53
|
+
created_at: nil,
|
|
54
|
+
android_gcm_sender_id: nil,
|
|
55
|
+
gcm_key: nil,
|
|
56
|
+
chrome_web_origin: nil,
|
|
57
|
+
chrome_key: nil,
|
|
58
|
+
chrome_web_default_notification_icon: nil,
|
|
59
|
+
chrome_web_sub_domain: nil,
|
|
60
|
+
apns_env: nil,
|
|
61
|
+
apns_p12: nil,
|
|
62
|
+
apns_p12_password: nil,
|
|
63
|
+
apns_certificates: nil,
|
|
64
|
+
safari_apns_certificates: nil,
|
|
65
|
+
safari_apns_p12: nil,
|
|
66
|
+
safari_apns_p12_password: nil,
|
|
67
|
+
apns_key_id: nil,
|
|
68
|
+
apns_team_id: nil,
|
|
69
|
+
apns_bundle_id: nil,
|
|
70
|
+
apns_p8: nil,
|
|
71
|
+
safari_site_origin: nil,
|
|
72
|
+
safari_push_id: nil,
|
|
73
|
+
safari_icon_16_16: nil,
|
|
74
|
+
safari_icon_32_32: nil,
|
|
75
|
+
safari_icon_64_64: nil,
|
|
76
|
+
safari_icon_128_128: nil,
|
|
77
|
+
safari_icon_256_256: nil,
|
|
78
|
+
site_name: nil,
|
|
79
|
+
basic_auth_key: nil,
|
|
80
|
+
organization_id: nil,
|
|
81
|
+
additional_data_is_root_payload: nil
|
|
82
82
|
)
|
|
83
83
|
```
|
|
84
84
|
|
data/docs/BasicNotification.md
CHANGED
|
@@ -128,123 +128,123 @@
|
|
|
128
128
|
require 'onesignal'
|
|
129
129
|
|
|
130
130
|
instance = OneSignal::BasicNotification.new(
|
|
131
|
-
included_segments:
|
|
132
|
-
excluded_segments:
|
|
133
|
-
include_subscription_ids:
|
|
134
|
-
include_email_tokens:
|
|
135
|
-
email_to:
|
|
136
|
-
include_phone_numbers:
|
|
137
|
-
include_ios_tokens:
|
|
138
|
-
include_wp_wns_uris:
|
|
139
|
-
include_amazon_reg_ids:
|
|
140
|
-
include_chrome_reg_ids:
|
|
141
|
-
include_chrome_web_reg_ids:
|
|
142
|
-
include_android_reg_ids:
|
|
143
|
-
include_aliases:
|
|
144
|
-
target_channel:
|
|
145
|
-
id:
|
|
146
|
-
value:
|
|
147
|
-
name:
|
|
148
|
-
aggregation:
|
|
149
|
-
is_ios:
|
|
150
|
-
is_android:
|
|
151
|
-
is_huawei:
|
|
152
|
-
is_any_web:
|
|
153
|
-
is_chrome_web:
|
|
154
|
-
is_firefox:
|
|
155
|
-
is_safari:
|
|
156
|
-
is_wp_wns:
|
|
157
|
-
is_adm:
|
|
158
|
-
is_chrome:
|
|
159
|
-
app_id:
|
|
160
|
-
external_id:
|
|
161
|
-
idempotency_key:
|
|
162
|
-
contents:
|
|
163
|
-
headings:
|
|
164
|
-
subtitle:
|
|
165
|
-
data:
|
|
166
|
-
huawei_msg_type:
|
|
167
|
-
url:
|
|
168
|
-
web_url:
|
|
169
|
-
app_url:
|
|
170
|
-
ios_attachments:
|
|
171
|
-
template_id:
|
|
172
|
-
content_available:
|
|
173
|
-
mutable_content:
|
|
174
|
-
target_content_identifier:
|
|
175
|
-
big_picture:
|
|
176
|
-
huawei_big_picture:
|
|
177
|
-
adm_big_picture:
|
|
178
|
-
chrome_big_picture:
|
|
179
|
-
chrome_web_image:
|
|
180
|
-
buttons:
|
|
181
|
-
web_buttons:
|
|
182
|
-
ios_category:
|
|
183
|
-
android_channel_id:
|
|
184
|
-
huawei_channel_id:
|
|
185
|
-
existing_android_channel_id:
|
|
186
|
-
huawei_existing_channel_id:
|
|
187
|
-
android_background_layout:
|
|
188
|
-
small_icon:
|
|
189
|
-
huawei_small_icon:
|
|
190
|
-
large_icon:
|
|
191
|
-
huawei_large_icon:
|
|
192
|
-
adm_small_icon:
|
|
193
|
-
adm_large_icon:
|
|
194
|
-
chrome_web_icon:
|
|
195
|
-
chrome_web_badge:
|
|
196
|
-
firefox_icon:
|
|
197
|
-
chrome_icon:
|
|
198
|
-
ios_sound:
|
|
199
|
-
android_sound:
|
|
200
|
-
huawei_sound:
|
|
201
|
-
adm_sound:
|
|
202
|
-
wp_wns_sound:
|
|
203
|
-
android_led_color:
|
|
204
|
-
huawei_led_color:
|
|
205
|
-
android_accent_color:
|
|
206
|
-
huawei_accent_color:
|
|
207
|
-
android_visibility:
|
|
208
|
-
huawei_visibility:
|
|
209
|
-
ios_badge_type:
|
|
210
|
-
ios_badge_count:
|
|
211
|
-
collapse_id:
|
|
212
|
-
web_push_topic:
|
|
213
|
-
apns_alert:
|
|
214
|
-
delayed_option:
|
|
215
|
-
delivery_time_of_day:
|
|
216
|
-
ttl:
|
|
217
|
-
priority:
|
|
218
|
-
apns_push_type_override:
|
|
219
|
-
throttle_rate_per_minute:
|
|
220
|
-
android_group:
|
|
221
|
-
android_group_message:
|
|
222
|
-
adm_group:
|
|
223
|
-
adm_group_message:
|
|
224
|
-
thread_id:
|
|
225
|
-
summary_arg:
|
|
226
|
-
summary_arg_count:
|
|
227
|
-
ios_relevance_score:
|
|
228
|
-
ios_interruption_level:
|
|
229
|
-
email_subject:
|
|
230
|
-
email_body:
|
|
231
|
-
email_from_name:
|
|
232
|
-
email_from_address:
|
|
233
|
-
email_reply_to_address:
|
|
234
|
-
email_preheader:
|
|
235
|
-
disable_email_click_tracking:
|
|
236
|
-
include_unsubscribed:
|
|
237
|
-
email_bcc:
|
|
238
|
-
email_sender_domain:
|
|
239
|
-
sms_from:
|
|
240
|
-
sms_media_urls:
|
|
241
|
-
filters:
|
|
242
|
-
custom_data:
|
|
243
|
-
huawei_badge_class:
|
|
244
|
-
huawei_badge_add_num:
|
|
245
|
-
huawei_badge_set_num:
|
|
246
|
-
huawei_category:
|
|
247
|
-
huawei_bi_tag:
|
|
131
|
+
included_segments: nil,
|
|
132
|
+
excluded_segments: nil,
|
|
133
|
+
include_subscription_ids: nil,
|
|
134
|
+
include_email_tokens: nil,
|
|
135
|
+
email_to: nil,
|
|
136
|
+
include_phone_numbers: nil,
|
|
137
|
+
include_ios_tokens: nil,
|
|
138
|
+
include_wp_wns_uris: nil,
|
|
139
|
+
include_amazon_reg_ids: nil,
|
|
140
|
+
include_chrome_reg_ids: nil,
|
|
141
|
+
include_chrome_web_reg_ids: nil,
|
|
142
|
+
include_android_reg_ids: nil,
|
|
143
|
+
include_aliases: nil,
|
|
144
|
+
target_channel: nil,
|
|
145
|
+
id: nil,
|
|
146
|
+
value: nil,
|
|
147
|
+
name: nil,
|
|
148
|
+
aggregation: nil,
|
|
149
|
+
is_ios: nil,
|
|
150
|
+
is_android: nil,
|
|
151
|
+
is_huawei: nil,
|
|
152
|
+
is_any_web: nil,
|
|
153
|
+
is_chrome_web: nil,
|
|
154
|
+
is_firefox: nil,
|
|
155
|
+
is_safari: nil,
|
|
156
|
+
is_wp_wns: nil,
|
|
157
|
+
is_adm: nil,
|
|
158
|
+
is_chrome: nil,
|
|
159
|
+
app_id: nil,
|
|
160
|
+
external_id: nil,
|
|
161
|
+
idempotency_key: nil,
|
|
162
|
+
contents: nil,
|
|
163
|
+
headings: nil,
|
|
164
|
+
subtitle: nil,
|
|
165
|
+
data: nil,
|
|
166
|
+
huawei_msg_type: nil,
|
|
167
|
+
url: nil,
|
|
168
|
+
web_url: nil,
|
|
169
|
+
app_url: nil,
|
|
170
|
+
ios_attachments: nil,
|
|
171
|
+
template_id: nil,
|
|
172
|
+
content_available: nil,
|
|
173
|
+
mutable_content: nil,
|
|
174
|
+
target_content_identifier: nil,
|
|
175
|
+
big_picture: nil,
|
|
176
|
+
huawei_big_picture: nil,
|
|
177
|
+
adm_big_picture: nil,
|
|
178
|
+
chrome_big_picture: nil,
|
|
179
|
+
chrome_web_image: nil,
|
|
180
|
+
buttons: nil,
|
|
181
|
+
web_buttons: nil,
|
|
182
|
+
ios_category: nil,
|
|
183
|
+
android_channel_id: nil,
|
|
184
|
+
huawei_channel_id: nil,
|
|
185
|
+
existing_android_channel_id: nil,
|
|
186
|
+
huawei_existing_channel_id: nil,
|
|
187
|
+
android_background_layout: nil,
|
|
188
|
+
small_icon: nil,
|
|
189
|
+
huawei_small_icon: nil,
|
|
190
|
+
large_icon: nil,
|
|
191
|
+
huawei_large_icon: nil,
|
|
192
|
+
adm_small_icon: nil,
|
|
193
|
+
adm_large_icon: nil,
|
|
194
|
+
chrome_web_icon: nil,
|
|
195
|
+
chrome_web_badge: nil,
|
|
196
|
+
firefox_icon: nil,
|
|
197
|
+
chrome_icon: nil,
|
|
198
|
+
ios_sound: nil,
|
|
199
|
+
android_sound: nil,
|
|
200
|
+
huawei_sound: nil,
|
|
201
|
+
adm_sound: nil,
|
|
202
|
+
wp_wns_sound: nil,
|
|
203
|
+
android_led_color: nil,
|
|
204
|
+
huawei_led_color: nil,
|
|
205
|
+
android_accent_color: nil,
|
|
206
|
+
huawei_accent_color: nil,
|
|
207
|
+
android_visibility: nil,
|
|
208
|
+
huawei_visibility: nil,
|
|
209
|
+
ios_badge_type: nil,
|
|
210
|
+
ios_badge_count: nil,
|
|
211
|
+
collapse_id: nil,
|
|
212
|
+
web_push_topic: nil,
|
|
213
|
+
apns_alert: nil,
|
|
214
|
+
delayed_option: nil,
|
|
215
|
+
delivery_time_of_day: nil,
|
|
216
|
+
ttl: nil,
|
|
217
|
+
priority: nil,
|
|
218
|
+
apns_push_type_override: nil,
|
|
219
|
+
throttle_rate_per_minute: nil,
|
|
220
|
+
android_group: nil,
|
|
221
|
+
android_group_message: nil,
|
|
222
|
+
adm_group: nil,
|
|
223
|
+
adm_group_message: nil,
|
|
224
|
+
thread_id: nil,
|
|
225
|
+
summary_arg: nil,
|
|
226
|
+
summary_arg_count: nil,
|
|
227
|
+
ios_relevance_score: nil,
|
|
228
|
+
ios_interruption_level: nil,
|
|
229
|
+
email_subject: nil,
|
|
230
|
+
email_body: nil,
|
|
231
|
+
email_from_name: nil,
|
|
232
|
+
email_from_address: nil,
|
|
233
|
+
email_reply_to_address: nil,
|
|
234
|
+
email_preheader: nil,
|
|
235
|
+
disable_email_click_tracking: nil,
|
|
236
|
+
include_unsubscribed: nil,
|
|
237
|
+
email_bcc: nil,
|
|
238
|
+
email_sender_domain: nil,
|
|
239
|
+
sms_from: nil,
|
|
240
|
+
sms_media_urls: nil,
|
|
241
|
+
filters: nil,
|
|
242
|
+
custom_data: nil,
|
|
243
|
+
huawei_badge_class: nil,
|
|
244
|
+
huawei_badge_add_num: nil,
|
|
245
|
+
huawei_badge_set_num: nil,
|
|
246
|
+
huawei_category: nil,
|
|
247
|
+
huawei_bi_tag: nil
|
|
248
248
|
)
|
|
249
249
|
```
|
|
250
250
|
|