- Notifications
You must be signed in to change notification settings - Fork13
License
OneSignal/onesignal-ruby-api
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
OneSignal - the Ruby gem for the OneSignal
A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
This SDK is automatically generated by theOpenAPI Generator project:
- API version: 5.3.0
- Package version: 5.3.0-beta1
- Build package: org.openapitools.codegen.languages.RubyClientCodegenFor more information, please visithttps://onesignal.com
To build the Ruby code into a gem:
gem build onesignal.gemspec
Then either install the gem locally:
gem install ./onesignal-5.3.0-beta1.gem
(for development, rungem install --dev ./onesignal-5.3.0-beta1.gem to install the development dependencies)
or publish the gem to a gem hosting service, e.g.RubyGems.
Finally add this to the Gemfile:
gem 'onesignal', '~> 5.3.0-beta1'If the Ruby gem is hosted at a git repository:https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
gem 'onesignal', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'Include the Ruby code directly using-I as follows:
ruby -Ilib script.rb
Please follow theinstallation procedure and then run the following code:
# Load the gemrequire'onesignal'# Setup authorizationOneSignal.configuredo |config|# Configure Bearer authorization: organization_api_keyconfig.organization_api_key='ORGANIZATION_API_KEY'# Organization key is only required for creating new apps and other top-level endpoints# Configure Bearer authorization: rest_api_keyconfig.rest_api_key='REST_API_KEY'# App REST API key required for most endpointsendapi_instance=OneSignal::DefaultApi.newapp_id='app_id_example'# String |notification_id='notification_id_example'# String |begin#Stop a scheduled or currently outgoing notificationresult=api_instance.cancel_notification(app_id,notification_id)presultrescueOneSignal::ApiError=>eputs"Exception when calling DefaultApi->cancel_notification:#{e}"end
All URIs are relative tohttps://api.onesignal.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| OneSignal::DefaultApi | cancel_notification | DELETE /notifications/{notification_id} | Stop a scheduled or currently outgoing notification |
| OneSignal::DefaultApi | copy_template_to_app | POST /templates/{template_id}/copy_to_app | Copy template to another app |
| OneSignal::DefaultApi | create_alias | PATCH /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity | |
| OneSignal::DefaultApi | create_alias_by_subscription | PATCH /apps/{app_id}/subscriptions/{subscription_id}/user/identity | |
| OneSignal::DefaultApi | create_api_key | POST /apps/{app_id}/auth/tokens | Create API key |
| OneSignal::DefaultApi | create_app | POST /apps | Create an app |
| OneSignal::DefaultApi | create_custom_events | POST /apps/{app_id}/integrations/custom_events | Create custom events |
| OneSignal::DefaultApi | create_notification | POST /notifications | Create notification |
| OneSignal::DefaultApi | create_segment | POST /apps/{app_id}/segments | Create Segment |
| OneSignal::DefaultApi | create_subscription | POST /apps/{app_id}/users/by/{alias_label}/{alias_id}/subscriptions | |
| OneSignal::DefaultApi | create_template | POST /templates | Create template |
| OneSignal::DefaultApi | create_user | POST /apps/{app_id}/users | |
| OneSignal::DefaultApi | delete_alias | DELETE /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity/{alias_label_to_delete} | |
| OneSignal::DefaultApi | delete_api_key | DELETE /apps/{app_id}/auth/tokens/{token_id} | Delete API key |
| OneSignal::DefaultApi | delete_segment | DELETE /apps/{app_id}/segments/{segment_id} | Delete Segment |
| OneSignal::DefaultApi | delete_subscription | DELETE /apps/{app_id}/subscriptions/{subscription_id} | |
| OneSignal::DefaultApi | delete_template | DELETE /templates/{template_id} | Delete template |
| OneSignal::DefaultApi | delete_user | DELETE /apps/{app_id}/users/by/{alias_label}/{alias_id} | |
| OneSignal::DefaultApi | export_events | POST /notifications/{notification_id}/export_events?app_id={app_id} | Export CSV of Events |
| OneSignal::DefaultApi | export_subscriptions | POST /players/csv_export?app_id={app_id} | Export CSV of Subscriptions |
| OneSignal::DefaultApi | get_aliases | GET /apps/{app_id}/users/by/{alias_label}/{alias_id}/identity | |
| OneSignal::DefaultApi | get_aliases_by_subscription | GET /apps/{app_id}/subscriptions/{subscription_id}/user/identity | |
| OneSignal::DefaultApi | get_app | GET /apps/{app_id} | View an app |
| OneSignal::DefaultApi | get_apps | GET /apps | View apps |
| OneSignal::DefaultApi | get_notification | GET /notifications/{notification_id} | View notification |
| OneSignal::DefaultApi | get_notification_history | POST /notifications/{notification_id}/history | Notification History |
| OneSignal::DefaultApi | get_notifications | GET /notifications | View notifications |
| OneSignal::DefaultApi | get_outcomes | GET /apps/{app_id}/outcomes | View Outcomes |
| OneSignal::DefaultApi | get_segments | GET /apps/{app_id}/segments | Get Segments |
| OneSignal::DefaultApi | get_user | GET /apps/{app_id}/users/by/{alias_label}/{alias_id} | |
| OneSignal::DefaultApi | rotate_api_key | POST /apps/{app_id}/auth/tokens/{token_id}/rotate | Rotate API key |
| OneSignal::DefaultApi | start_live_activity | POST /apps/{app_id}/activities/activity/{activity_type} | Start Live Activity |
| OneSignal::DefaultApi | transfer_subscription | PATCH /apps/{app_id}/subscriptions/{subscription_id}/owner | |
| OneSignal::DefaultApi | unsubscribe_email_with_token | POST /apps/{app_id}/notifications/{notification_id}/unsubscribe | Unsubscribe with token |
| OneSignal::DefaultApi | update_api_key | PATCH /apps/{app_id}/auth/tokens/{token_id} | Update API key |
| OneSignal::DefaultApi | update_app | PUT /apps/{app_id} | Update an app |
| OneSignal::DefaultApi | update_live_activity | POST /apps/{app_id}/live_activities/{activity_id}/notifications | Update a Live Activity via Push |
| OneSignal::DefaultApi | update_subscription | PATCH /apps/{app_id}/subscriptions/{subscription_id} | |
| OneSignal::DefaultApi | update_subscription_by_token | PATCH /apps/{app_id}/subscriptions_by_token/{token_type}/{token} | Update subscription by token |
| OneSignal::DefaultApi | update_template | PATCH /templates/{template_id} | Update template |
| OneSignal::DefaultApi | update_user | PATCH /apps/{app_id}/users/by/{alias_label}/{alias_id} | |
| OneSignal::DefaultApi | view_api_keys | GET /apps/{app_id}/auth/tokens | View API keys |
| OneSignal::DefaultApi | view_template | GET /templates/{template_id} | View template |
| OneSignal::DefaultApi | view_templates | GET /templates | View templates |
- OneSignal::ApiKeyToken
- OneSignal::ApiKeyTokensListResponse
- OneSignal::App
- OneSignal::BasicNotification
- OneSignal::BasicNotificationAllOf
- OneSignal::BasicNotificationAllOfAndroidBackgroundLayout
- OneSignal::Button
- OneSignal::CopyTemplateRequest
- OneSignal::CreateApiKeyRequest
- OneSignal::CreateApiKeyResponse
- OneSignal::CreateNotificationSuccessResponse
- OneSignal::CreateSegmentConflictResponse
- OneSignal::CreateSegmentSuccessResponse
- OneSignal::CreateTemplateRequest
- OneSignal::CreateUserConflictResponse
- OneSignal::CreateUserConflictResponseErrorsInner
- OneSignal::CreateUserConflictResponseErrorsItemsMeta
- OneSignal::CustomEvent
- OneSignal::CustomEventsRequest
- OneSignal::DeliveryData
- OneSignal::ExportEventsSuccessResponse
- OneSignal::ExportSubscriptionsRequestBody
- OneSignal::ExportSubscriptionsSuccessResponse
- OneSignal::Filter
- OneSignal::FilterExpression
- OneSignal::GenericError
- OneSignal::GenericSuccessBoolResponse
- OneSignal::GetNotificationHistoryRequestBody
- OneSignal::GetSegmentsSuccessResponse
- OneSignal::LanguageStringMap
- OneSignal::Notification
- OneSignal::NotificationAllOf
- OneSignal::NotificationHistorySuccessResponse
- OneSignal::NotificationSlice
- OneSignal::NotificationTarget
- OneSignal::NotificationWithMeta
- OneSignal::NotificationWithMetaAllOf
- OneSignal::Operator
- OneSignal::OutcomeData
- OneSignal::OutcomesData
- OneSignal::PlatformDeliveryData
- OneSignal::PlatformDeliveryDataEmailAllOf
- OneSignal::PlatformDeliveryDataSmsAllOf
- OneSignal::PropertiesBody
- OneSignal::PropertiesDeltas
- OneSignal::PropertiesObject
- OneSignal::Purchase
- OneSignal::RateLimitError
- OneSignal::Segment
- OneSignal::SegmentData
- OneSignal::SegmentNotificationTarget
- OneSignal::StartLiveActivityRequest
- OneSignal::StartLiveActivitySuccessResponse
- OneSignal::Subscription
- OneSignal::SubscriptionBody
- OneSignal::SubscriptionNotificationTarget
- OneSignal::TemplateResource
- OneSignal::TemplatesListResponse
- OneSignal::TransferSubscriptionRequestBody
- OneSignal::UpdateApiKeyRequest
- OneSignal::UpdateLiveActivityRequest
- OneSignal::UpdateLiveActivitySuccessResponse
- OneSignal::UpdateTemplateRequest
- OneSignal::UpdateUserRequest
- OneSignal::User
- OneSignal::UserIdentityBody
- OneSignal::WebButton
- Type: Bearer authentication
- Type: Bearer authentication
About
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors6
Uh oh!
There was an error while loading.Please reload this page.