Skip to content

Commit 51b9dcf

Browse files
authored
Release 0.1.3 (#13)
1 parent 78c6e51 commit 51b9dcf

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Pinterest's REST API
88
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
99

1010
- API version: 5.6.0
11-
- Package version: 0.1.2
11+
- Package version: 0.1.3
1212
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1313
For more information, please visit [https://developers.pinterest.com/](https://developers.pinterest.com/)
1414

pinterest/generated/client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212

1313

14-
__version__ = "0.1.2"
14+
__version__ = "0.1.3"
1515

1616
# import ApiClient
1717
from pinterest.generated.client.api_client import ApiClient

pinterest/generated/client/api_client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
)
4141

4242
APP_TYPE_DETAILED_VALUE = '12'
43+
DEFAULT_USER_AGENT = 'pins-generated-client/python/0.1.3'
4344

4445
class ApiClient(object):
4546
"""Generic API client for OpenAPI client library builds.
@@ -66,8 +67,8 @@ class ApiClient(object):
6667
_pool = None
6768

6869
def __init__(self, configuration=None, header_name=None, header_value=None,
69-
cookie=None, pool_threads=1, app_type_detailed=APP_TYPE_DETAILED_VALUE):
70-
self.app_type_detailed = app_type_detailed
70+
cookie=None, pool_threads=1, user_agent=DEFAULT_USER_AGENT):
71+
self.app_type_detailed = APP_TYPE_DETAILED_VALUE
7172
if configuration is None:
7273
configuration = Configuration.get_default_copy()
7374
self.configuration = configuration
@@ -82,7 +83,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
8283
self.default_headers[header_name] = header_value
8384
self.cookie = cookie
8485
# Set default User-Agent.
85-
self.user_agent = 'pins-generated-client/python/0.1.2'
86+
self.user_agent = user_agent
8687

8788
def __enter__(self):
8889
return self

pinterest/generated/client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def to_debug_report(self):
419419
"OS: {env}\n"\
420420
"Python Version: {pyversion}\n"\
421421
"Version of the API: 5.6.0\n"\
422-
"SDK Package Version: 0.1.2".\
422+
"SDK Package Version: 0.1.3".\
423423
format(env=sys.platform, pyversion=sys.version)
424424

425425
def get_host_settings(self):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from pathlib import Path
1414

1515
NAME = "Pinterest Generated Client"
16-
VERSION = "0.1.2"
16+
VERSION = "0.1.3"
1717
# To install the library, run the following
1818
#
1919
# python setup.py install

0 commit comments

Comments
 (0)