Skip to content

Commit 091d92a

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents 98c0c21 + 56dfb55 commit 091d92a

File tree

408 files changed

+4228
-3960
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

408 files changed

+4228
-3960
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ def runtests(dockerImageVersion)
2525
sh 'git clean -fdx'
2626

2727
if (needToBuild) {
28-
withCredentials([usernamePassword(credentialsId: '6839cbe8-39fa-40c0-86ce-90706f0bae5d', passwordVariable: 'AppKey', usernameVariable: 'AppSid')]) {
28+
withCredentials([usernamePassword(credentialsId: '6839cbe8-39fa-40c0-86ce-90706f0bae5d', passwordVariable: 'ClientSecret', usernameVariable: 'ClientId')]) {
2929
sh 'mkdir -p Settings'
30-
sh 'echo "{\\"AppSid\\": \\"$AppSid\\",\\"AppKey\\": \\"$AppKey\\", \\"BaseUrl\\": \\"$apiUrl\\"}" > Settings/servercreds.json'
30+
sh 'echo "{\\"ClientId\\": \\"$ClientId\\",\\"ClientSecret\\": \\"$ClientSecret\\", \\"BaseUrl\\": \\"$apiUrl\\"}" > Settings/servercreds.json'
3131
}
3232
}
3333
}

JenkinsfileRelease

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ def publishToPypi()
3333
stage('6:checkout again'){
3434
if (params.StartFromStage.toInteger() < 7) {
3535
checkout([$class: 'GitSCM', branches: [[name: '*/release']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'LocalBranch', localBranch: "**"]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '361885ba-9425-4230-950e-0af201d90547', url: 'https://git.auckland.dynabic.com/words-cloud/words-cloud-python.git']]])
36-
withCredentials([usernamePassword(credentialsId: '6839cbe8-39fa-40c0-86ce-90706f0bae5d', passwordVariable: 'AppKey', usernameVariable: 'AppSid')]) {
36+
withCredentials([usernamePassword(credentialsId: '6839cbe8-39fa-40c0-86ce-90706f0bae5d', passwordVariable: 'ClientSecret', usernameVariable: 'ClientId')]) {
3737
sh 'mkdir -p Settings'
38-
sh 'echo "{\\"AppSid\\": \\"$AppSid\\",\\"AppKey\\": \\"$AppKey\\", \\"BaseUrl\\": \\"$testServerUrl\\"}" > Settings/servercreds.json'
38+
sh 'echo "{\\"ClientId\\": \\"$ClientId\\",\\"ClientSecret\\": \\"$ClientSecret\\", \\"BaseUrl\\": \\"$testServerUrl\\"}" > Settings/servercreds.json'
3939
}
4040
}
4141
}

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ Python Cloud SDK wraps Aspose.Words Cloud API so you could seamlessly integrate
1616
- [Convert a document to desired file format](https://docs.aspose.cloud/display/wordscloud/Convert+Document+to+Destination+Format+with+Detailed+Settings+and+Save+Result+to+Storage) along with detailed settings.
1717
- Convert an encrypted PDF document into Word document format.
1818

19+
## Enhancements in Version 20.11
20+
21+
- In configuration json file appSid / appKey has been replaced to clientId / clientSecret.
22+
- In Words API initialization methods clientId parameter precedes clientSecret parameter.
23+
24+
25+
## Enhancements in Version 20.10
26+
27+
- Internal API changes.
28+
29+
1930
## Enhancements in Version 20.9
2031

2132
- Added Batch API feature
@@ -115,7 +126,7 @@ The complete source code is available at [GitHub Repository](https://github.com/
115126
```python
116127
# Start README example
117128

118-
self.words_api = asposewordscloud.WordsApi(api_sid, api_key)
129+
self.words_api = asposewordscloud.WordsApi(client_id, client_secret)
119130
self.words_api.api_client.configuration.host = base_url
120131

121132
upload_request = asposewordscloud.models.requests.UploadFileRequest(

asposewordscloud/api_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
8181

8282
self.pool = ThreadPool()
8383
self.rest_client = rest.RESTClientObject(configuration)
84-
self.default_headers = {'x-aspose-client': 'python sdk', 'x-aspose-version': '20.10'}
84+
self.default_headers = {'x-aspose-client': 'python sdk', 'x-aspose-version': '20.11'}
8585
if header_name is not None:
8686
self.default_headers[header_name] = header_value
8787
self.cookie = cookie
8888
# Set default User-Agent.
89-
self.user_agent = 'python sdk 20.10'
89+
self.user_agent = 'python sdk 20.11'
9090

9191
def __del__(self):
9292
self.pool.close()
@@ -109,8 +109,8 @@ def request_token(self):
109109
config = self.configuration
110110
request_url = "/connect/token"
111111
form_params = [['grant_type', 'client_credentials', 'string'],
112-
['client_id', config.api_key['app_sid'], 'string'],
113-
['client_secret', config.api_key['api_key'], 'string']]
112+
['client_id', config.client_secret['client_id'], 'string'],
113+
['client_secret', config.client_secret['client_secret'], 'string']]
114114

115115
header_params = {'Accept': 'application/json', 'Content-Type': 'application/x-www-form-urlencoded'}
116116

0 commit comments

Comments
 (0)