Skip to content

Commit 20e3b73

Browse files
committed
20210722 update 1: Aspose.Cells Cloud 21.6.1.
1 parent c6d0a73 commit 20e3b73

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Examples/AuthUtil.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
import asposestoragecloud
1212

1313
grantType = "client_credentials"
14-
clientId = "78946fb4-3bd4-4d3e-b309-f9e2ff9ac6f9"
15-
clientSecret = "b125f13bf6b76ed81ee990142d841195"
14+
clientId = os.getenv('CellsCloudTestClientId')
15+
clientSecret = os.getenv('CellsCloudTestClientSecret')
1616

1717
def GetAccessToken():
18-
client = ApiClient('https://api.aspose.cloud/')
18+
client = ApiClient(os.getenv('CellsCloudTestApiBaseUrl'))
1919
api = asposecellscloud.apis.o_auth_api.OAuthApi(client)
2020
data = api.o_auth_post(grantType, clientId, clientSecret)
2121
return data.access_token
@@ -25,6 +25,6 @@ def GetAccessToken():
2525
def GetApiClient():
2626
global api_client
2727
if api_client == None:
28-
api_client = ApiClient('https://api.aspose.cloud/v1.1')
28+
api_client = ApiClient(os.getenv('CellsCloudTestApiBaseUrl')+'/v1.1')
2929
api_client.set_default_header("Authorization", "Bearer " + GetAccessToken())
3030
return api_client

asposecellscloud/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(self, host=None, header_name=None, header_value=None, cookie=None):
8383
self.host = host
8484
self.cookie = cookie
8585
# Set default User-Agent.
86-
self.user_agent = 'Swagger-Codegen/21.6/python'
86+
self.user_agent = 'Swagger-Codegen/21.6.1/python'
8787

8888
@property
8989
def user_agent(self):

asposecellscloud/configuration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import logging
3030

3131
from six import iteritems
32-
from six.moves import http_client as httplib.
32+
from six.moves import http_client as httplib
3333

3434

3535
def singleton(cls, *args, **kw):
@@ -254,6 +254,6 @@ def to_debug_report(self):
254254
return "Python SDK Debug Report:\n"\
255255
"OS: {env}\n"\
256256
"Python Version: {pyversion}\n"\
257-
"Version of the API: 21.6\n"\
258-
"SDK Package Version: 21.6".\
257+
"Version of the API: 21.6.1\n"\
258+
"SDK Package Version: 21.6.1".\
259259
format(env=sys.platform, pyversion=sys.version)

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
from setuptools import setup, find_packages
55

66
NAME = "asposecellscloud"
7-
VERSION = "21.6.0"
7+
VERSION = "21.6.1"
88
# To install the library, run the following
99
#
1010
# python setup.py install
1111
#
1212
# prerequisite: setuptools
1313
# http://pypi.python.org/pypi/setuptools
1414

15-
REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil", "asposestoragecloud"]
15+
REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"]
1616

1717
setup(
1818
name=NAME,

0 commit comments

Comments
 (0)