Skip to content

Commit

Permalink
Merge pull request #38 from OneSignal/api
Browse files Browse the repository at this point in the history
Add v2.1.0 package updates
  • Loading branch information
sherwinski authored Jan 22, 2025
2 parents ff4f068 + 026e310 commit f57fc29
Show file tree
Hide file tree
Showing 163 changed files with 179 additions and 176 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

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

- 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.PythonClientCodegen

## Requirements.
Expand Down Expand Up @@ -79,7 +79,7 @@ with onesignal.ApiClient(configuration) as api_client:

## 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
7 changes: 4 additions & 3 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 @@ -1005,6 +1005,7 @@ Removes the User identified by (:alias_label, :alias_id), and all Subscriptions

### Example

* Bearer Authentication (app_key):

```python
import onesignal
Expand All @@ -1014,7 +1015,7 @@ from onesignal.model.rate_limiter_error import RateLimiterError
from pprint import pprint

# Enter a context with an instance of the API client
with onesignal.ApiClient() as api_client:
with onesignal.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = default_api.DefaultApi(api_client)
app_id = "app_id_example"
Expand Down Expand Up @@ -1043,7 +1044,7 @@ void (empty response body)

### Authorization

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

### HTTP request headers

Expand Down
4 changes: 2 additions & 2 deletions onesignal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""


__version__ = "2.0.2"
__version__ = "2.1.0"

# import ApiClient
from onesignal.api_client import ApiClient
Expand Down
6 changes: 4 additions & 2 deletions onesignal/api/default_api.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -783,7 +783,9 @@ def __init__(self, api_client=None):
self.delete_user_endpoint = _Endpoint(
settings={
'response_type': None,
'auth': [],
'auth': [
'app_key'
],
'endpoint_path': '/apps/{app_id}/users/by/{alias_label}/{alias_id}',
'operation_id': 'delete_user',
'http_method': 'DELETE',
Expand Down
6 changes: 3 additions & 3 deletions onesignal/api_client.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/2.0.2/python'
self.user_agent = 'OpenAPI-Generator/2.1.0/python'

def __enter__(self):
return self
Expand Down Expand Up @@ -142,7 +142,7 @@ def __call_api(
# header parameters
header_params = header_params or {}
header_params.update(self.default_headers)
header_params['OS-Usage-Data'] = "kind=sdk, sdk-name=onesignal-python, version=1.2.2"
header_params['OS-Usage-Data'] = "kind=sdk, sdk-name=onesignal-python, version=2.1.0"
if self.cookie:
header_params['Cookie'] = self.cookie
if header_params:
Expand Down
10 changes: 5 additions & 5 deletions onesignal/configuration.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -95,7 +95,7 @@ def __init__(self, host=None,
):
"""Constructor
"""
self._base_path = "https://onesignal.com/api/v1" if host is None else host
self._base_path = "https://api.onesignal.com" if host is None else host
"""Default Base url
"""
self.server_index = 0 if server_index is None and host is None else server_index
Expand Down Expand Up @@ -399,8 +399,8 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1.2.2\n"\
"SDK Package Version: 2.0.2".\
"Version of the API: 1.3.0\n"\
"SDK Package Version: 2.1.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand All @@ -410,7 +410,7 @@ def get_host_settings(self):
"""
return [
{
'url': "https://onesignal.com/api/v1",
'url': "https://api.onesignal.com",
'description': "No description provided",
}
]
Expand Down
2 changes: 1 addition & 1 deletion onesignal/exceptions.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/app.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/apps.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/basic_notification.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/basic_notification_all_of.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/begin_live_activity_request.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/button.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/buttons.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/cancel_notification_success_response.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/create_notification_success_response.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/create_player_success_response.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/create_segment_conflict_response.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/create_segment_success_response.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/create_subscription_request_body.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/create_user_conflict_response.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/delete_player_not_found_response.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/delete_player_success_response.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/delete_segment_not_found_response.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/delete_segment_success_response.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/delivery_data.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/export_events_success_response.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/export_players_request_body.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/export_players_success_response.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
2 changes: 1 addition & 1 deletion onesignal/model/filter.py
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 # noqa: E501
The version of the OpenAPI document: 1.2.2
The version of the OpenAPI document: 1.3.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down
Loading

0 comments on commit f57fc29

Please sign in to comment.