Skip to content
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

- API version: 5.2.0
- Package version: 5.2.0-beta1
- Package version: 5.2.1-beta1
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down
2 changes: 1 addition & 1 deletion onesignal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""


__version__ = "5.2.0-beta1"
__version__ = "5.2.1-beta1"

# import ApiClient
from onesignal.api_client import ApiClient
Expand Down
4 changes: 2 additions & 2 deletions onesignal/api_client.py
Original file line number Diff line number Diff line change
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/5.2.0-beta1/python'
self.user_agent = 'OpenAPI-Generator/5.2.1-beta1/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=5.2.0-beta1"
header_params['OS-Usage-Data'] = "kind=sdk, sdk-name=onesignal-python, version=5.2.1-beta1"
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 @@ -84,8 +84,8 @@ class Configuration(object):

def __init__(self, host=None,
api_key=None, api_key_prefix=None,
app_key=None,
user_key=None,
rest_api_key=None,
organization_api_key=None,
username=None, password=None,
discard_unknown_keys=False,
disabled_client_side_validations="",
Expand All @@ -110,8 +110,8 @@ def __init__(self, host=None,
"""Temp file folder for downloading files
"""
# Authentication Settings
self.app_key = app_key
self.user_key = user_key
self.rest_api_key = rest_api_key
self.organization_api_key = organization_api_key
self.api_key = {}
if api_key:
self.api_key = api_key
Expand Down Expand Up @@ -400,7 +400,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 5.2.0\n"\
"SDK Package Version: 5.2.0-beta1".\
"SDK Package Version: 5.2.1-beta1".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "onesignal_python_api"
VERSION = "5.2.0-beta1"
VERSION = "5.2.1-beta1"
# To install the library, run the following
#
# python setup.py install
Expand Down