Skip to content

Commit adf3232

Browse files
committed
Release Aspose.Cells Cloud SDK 20.7
1 parent 50cf2c5 commit adf3232

25 files changed

+290
-299
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@ Python Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate M
1616
- Convert worksheets to PDF, XPS & SVG formats.
1717
- Inter-convert files to popular Excel formats.
1818

19-
## Feature & Enhancements in Version 20.6
19+
## Feature & Enhancements in Version 20.7
2020

21-
22-
- Support to add text water marker.
23-
- Enhancement for workbook convert images in get workbook API.
24-
- Enhancement for Cells object operating in Task API.
21+
- Enhancement for CellsApi constructor.
2522

2623
## Read & Write Spreadsheet Formats
2724

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/20.6/python'
86+
self.user_agent = 'Swagger-Codegen/20.7/python'
8787

8888
@property
8989
def user_agent(self):

asposecellscloud/apis/cells_api.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,20 @@
3737

3838
class CellsApi(object):
3939

40-
def __init__(self,appsid, appkey, version='v3.0', api_client=None):
40+
def __init__(self,appsid, appkey, version='v3.0', base_uri= 'https://api.aspose.cloud', api_client=None):
4141
self.appsid = appsid
4242
self.appkey = appkey
4343
self.version = version
44-
self.api_client = ApiClient('https://api.aspose.cloud')
44+
if base_uri[-1] == '/' :
45+
self.base_uri = base_uri[0:len(base_uri)-1]
46+
else:
47+
self.base_uri = base_uri
48+
49+
self.api_client = ApiClient(base_uri)
4550
self.access_token = self.api_client.get_access_token("client_credentials", appsid, appkey,version)
4651
# self.auth_data = self.o_auth_post("client_credentials", appsid, appkey)
4752
config = Configuration()
48-
if version == 'v1.1':
49-
config.host = "https://api.aspose.cloud/v1.1"
53+
config.host = self.base_uri +'/' + self.version
5054
if api_client:
5155
self.api_client = api_client
5256
else:
@@ -61,7 +65,7 @@ def check_access_token(self):
6165
if self.access_token:
6266
timediff = time.clock() - self.get_access_token_time
6367
if timediff > 86300 :
64-
api_client = ApiClient('https://api.aspose.cloud')
68+
api_client = ApiClient(self.base_uri)
6569
self.access_token = api_client.get_access_token("client_credentials", self.appsid, self.appkey,self.version)
6670
self.api_client.set_default_header("Authorization", "Bearer " + self.access_token)
6771
self.get_access_token_time = time.clock()

asposecellscloud/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,5 +255,5 @@ def to_debug_report(self):
255255
"OS: {env}\n"\
256256
"Python Version: {pyversion}\n"\
257257
"Version of the API: 20.6\n"\
258-
"SDK Package Version: 20.6".\
258+
"SDK Package Version: 20.7".\
259259
format(env=sys.platform, pyversion=sys.version)

0 commit comments

Comments
 (0)