File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,10 +60,13 @@ npm install groupdocs-conversion-cloud
6060// Get your application information from https://dashboard.groupdocs.cloud
6161global .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
6871let settings = new conversion_cloud.ConvertSettings ();
6972settings .filePath = " WordProcessing/four-pages.docx" ;
You can’t perform that action at this time.
0 commit comments