Skip to content

Commit 76aeb34

Browse files
Updated README
1 parent 6284d80 commit 76aeb34

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,13 @@ npm install groupdocs-conversion-cloud
6060
// Get your application information from https://dashboard.groupdocs.cloud
6161
global.conversion_cloud = require("groupdocs-conversion-cloud");
6262

63-
global.appSid = "XXXX-XXXX-XXXX-XXXX";
64-
global.appKey = "XXXXXXXXXXXXXXXX";
63+
// Get Client Id and Client Secret from https://dashboard.groupdocs.cloud
64+
const myClientId: string = "";
65+
const myClientSecret: string = "";
6566

66-
global.convertApi = conversion_cloud.ConvertApi.fromKeys(appSid, appKey);
67+
// Create instance of the API
68+
const configuration: Configuration = conversion_cloud.Configuration(myClientId, myClientSecret);
69+
const convertApi: ConvertApi = conversion_cloud.ConvertApi.fromConfig(configuration);
6770

6871
let settings = new conversion_cloud.ConvertSettings();
6972
settings.filePath = "WordProcessing/four-pages.docx";

0 commit comments

Comments
 (0)