Skip to content

Commit 11f6133

Browse files
Merge remote-tracking branch 'origin/master' into release
2 parents bc3f61f + 729390d commit 11f6133

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/aspose_words_cloud/api/words_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14209,7 +14209,7 @@ def encrypt(data)
1420914209
#
1421014210
private def request_token
1421114211
config = @api_client.config
14212-
request_url = "/connect/token"
14212+
request_url = "/v4.0/words/connect/token"
1421314213
post_data = "grant_type=client_credentials" + "&client_id=" + config.client_data['ClientId'] + "&client_secret=" + config.client_data['ClientSecret']
1421414214
data, status_code, header = @api_client.call_api(:POST, request_url, :body => post_data, :return_type => 'Object', :header_params => {'Content-Type': 'application/x-www-form-urlencoded'})
1421514215
@api_client.config.access_token = data[:access_token]

lib/aspose_words_cloud/api_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def sanitize_filename(filename)
390390
def build_request_url(path)
391391
# remove empty path parameter artifacts
392392
path = path.gsub(/\/+/, '/')
393-
return @config.getFullUrl(path, path == "/connect/token")
393+
return @config.getFullUrl(path, path == "/v4.0/words/connect/token")
394394
end
395395

396396
# Builds the HTTP request body

0 commit comments

Comments
 (0)