Skip to content

Add v2.1.0 package updates #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ A powerful way to send personalized messages at scale and build effective custom

This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.2.2
- Package version: 2.0.2
- API version: 1.3.0
- Package version: 2.1.0
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
For more information, please visit [https://onesignal.com](https://onesignal.com)

Expand All @@ -24,16 +24,16 @@ gem build onesignal.gemspec
Then either install the gem locally:

```shell
gem install ./onesignal-2.0.2.gem
gem install ./onesignal-2.1.0.gem
```

(for development, run `gem install --dev ./onesignal-2.0.2.gem` to install the development dependencies)
(for development, run `gem install --dev ./onesignal-2.1.0.gem` to install the development dependencies)

or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).

Finally add this to the Gemfile:

gem 'onesignal', '~> 2.0.2'
gem 'onesignal', '~> 2.1.0'

### Install from Git

Expand Down Expand Up @@ -79,7 +79,7 @@ end

## Documentation for API Endpoints

All URIs are relative to *https://onesignal.com/api/v1*
All URIs are relative to *https://api.onesignal.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand Down
10 changes: 8 additions & 2 deletions docs/DefaultApi.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OneSignal::DefaultApi

All URIs are relative to *https://onesignal.com/api/v1*
All URIs are relative to *https://api.onesignal.com*

| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
Expand Down Expand Up @@ -911,6 +911,12 @@ Removes the User identified by (:alias_label, :alias_id), and all Subscriptions

```ruby
require 'onesignal'
# setup authorization
OneSignal.configure do |config|
# Configure Bearer authorization: app_key
config.app_key = 'YOUR_BEARER_TOKEN'

end

api_instance = OneSignal::DefaultApi.new
app_id = 'app_id_example' # String |
Expand Down Expand Up @@ -957,7 +963,7 @@ nil (empty response body)

### Authorization

No authorization required
[app_key](../README.md#app_key)

### HTTP request headers

Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
4 changes: 2 additions & 2 deletions lib/onesignal/api/default_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down Expand Up @@ -938,7 +938,7 @@ def delete_user_with_http_info(app_id, alias_label, alias_id, opts = {})
return_type = opts[:debug_return_type]

# auth_names
auth_names = opts[:debug_auth_names] || []
auth_names = opts[:debug_auth_names] || ['app_key']

new_options = opts.merge(
:operation => :"DefaultApi.delete_user",
Expand Down
4 changes: 2 additions & 2 deletions lib/onesignal/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down Expand Up @@ -90,7 +90,7 @@ def build_request(http_method, path, opts = {})
url = build_request_url(path, opts)
http_method = http_method.to_sym.downcase

opts[:header_params]['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-ruby, version=1.2.2'
opts[:header_params]['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-ruby, version=2.1.0'
header_params = @default_headers.merge(opts[:header_params] || {})
query_params = opts[:query_params] || {}
form_params = opts[:form_params] || {}
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/api_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
8 changes: 4 additions & 4 deletions lib/onesignal/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down Expand Up @@ -117,8 +117,8 @@ class Configuration

def initialize
@scheme = 'https'
@host = 'onesignal.com'
@base_path = '/api/v1'
@host = 'api.onesignal.com'
@base_path = ''
@server_index = 0
@server_operation_index = {}
@server_variables = {}
Expand Down Expand Up @@ -196,7 +196,7 @@ def auth_settings
def server_settings
[
{
url: "https://onesignal.com/api/v1",
url: "https://api.onesignal.com",
description: "No description provided",
}
]
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/basic_notification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/basic_notification_all_of.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/begin_live_activity_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/button.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/create_player_success_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/create_segment_conflict_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/create_segment_success_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/create_subscription_request_body.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/create_user_conflict_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/delete_player_not_found_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/delete_player_success_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/delete_segment_not_found_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/delete_segment_success_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/delivery_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/export_events_success_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/export_players_request_body.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/export_players_success_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/filter_expressions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/generic_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
2 changes: 1 addition & 1 deletion lib/onesignal/models/generic_error_errors_inner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: devrel@onesignal.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.0.0-SNAPSHOT
Expand Down
Loading