diff --git a/README.md b/README.md index 85188447..b65fc9c2 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ XLS, XLSX, PPTX, DOC, DOCX, MobiXML, JPEG, EMF, PNG, BMP, GIF, TIFF, Text ## Read PDF Formats MHT, PCL, PS, XSLFO, MD -## Enhancements in Version 22.8 +## Enhancements in Version 22.9 - A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET. ## Installation diff --git a/package-lock.json b/package-lock.json index 44e5d9f5..b373c1a5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "asposepdfcloud", - "version": "22.8.0", + "version": "22.9.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "asposepdfcloud", - "version": "22.8.0", + "version": "22.9.0", "license": "MIT", "dependencies": { "@types/bluebird": "*", diff --git a/package.json b/package.json index dd1d2a05..e4a82126 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "asposepdfcloud", - "version": "22.8.0", + "version": "22.9.0", "description": "Aspose.PDF Cloud is a REST API for creating and editing PDF files. Most popular features proposed by Aspose.PDF Cloud: PDF to Word, Convert PDF to Image, Merge PDF, Split PDF, Add Images to PDF, Rotate PDF. It can also be used to convert PDF files to different formats like DOC, HTML, XPS, TIFF and many more. Aspose.PDF Cloud gives you control: create PDFs from scratch or from HTML, XML, template, database, XPS or an image. Render PDFs to image formats such as JPEG, PNG, GIF, BMP, TIFF and many others. Aspose.PDF Cloud helps you manipulate elements of a PDF file like text, annotations, watermarks, signatures, bookmarks, stamps and so on. Its REST API also allows you to manage PDF pages by using features like merging, splitting, and inserting. Add images to a PDF file or convert PDF pages to images.", "homepage": "https://products.aspose.cloud/pdf/cloud", "author": { diff --git a/src/auth.ts b/src/auth.ts index d1c9368b..3d2b97c0 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -67,10 +67,13 @@ export class OAuth implements IAuthentication { } private async _requestToken(configuration: Configuration): Promise { + console.log("baseUrl: " + configuration.baseUrl); + var tokenUrl = configuration.baseUrl.replace("/v3.0", "") + "/connect/token"; + console.log("tokenUrl: " + tokenUrl); const requestOptions: request.Options = { method: "POST", json: true, - uri: configuration.baseUrl.replace("/v3.0", "") + "/connect/token", + uri: tokenUrl, headers: {'Content-Type': 'application/x-www-form-urlencoded'}, form: { grant_type: "client_credentials", diff --git a/src/requestHelper.ts b/src/requestHelper.ts index 70d513c7..90db4c7b 100644 --- a/src/requestHelper.ts +++ b/src/requestHelper.ts @@ -93,7 +93,7 @@ async function invokeApiMethodInternal(requestOptions: request.Options, confgura //headers sa.set("User-Agent", "pdf nodejs sdk"); sa.set("x-aspose-client", "nodejs sdk"); - sa.set("x-aspose-client-version", "22.8.0"); + sa.set("x-aspose-client-version", "22.9.0"); if (!requestOptions.headers) { requestOptions.headers = {};