Skip to content

Commit afeb524

Browse files
authored
Merge pull request #37 from aspose-pdf-cloud/develop
update to 22.9.0
2 parents 1021719 + 5eca94a commit afeb524

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ These SDKs are now fully supported. If you have any questions, see any bugs or h
99

1010
Extract Text & Images of a PDF document online https://products.aspose.app/pdf/parser.
1111

12-
## Enhancements in Version 22.8
12+
## Enhancements in Version 22.9
1313
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.
1414

1515
## Installation

api_client.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ func (c *APIClient) prepareRequest (
176176

177177
// set custom header
178178
headerParams["x-aspose-client"] = "go sdk"
179-
headerParams["x-aspose-client-version"] = "22.8.0"
179+
headerParams["x-aspose-client-version"] = "22.9.0"
180180

181181
// Detect postBody type and post.
182182
if postBody != nil {
@@ -421,9 +421,11 @@ func (a *APIClient) addAuth(request *http.Request) (err error) {
421421

422422
// RequestOauthToken function for requests OAuth token
423423
func (a *APIClient) RequestOauthToken() error {
424+
tokenUrl := strings.Replace(a.cfg.BasePath, "/v3.0", "/connect/token", -1)
425+
// tokenUrl := a.cfg.BasePath + "/pdf/connect/token"
426+
fmt.Println("tokenUrl: " + tokenUrl)
424427
resp, err := http.PostForm(
425-
strings.Replace(a.cfg.BasePath, "/v3.0", "/connect/token", -1),
426-
// a.cfg.BasePath+"/pdf/connect/token",
428+
tokenUrl,
427429
url.Values{
428430
"grant_type": {"client_credentials"},
429431
"client_id": {a.cfg.AppSid},

0 commit comments

Comments
 (0)