Skip to content

Commit b949df5

Browse files
Updated README
1 parent 4db21e2 commit b949df5

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
@@ -101,17 +101,20 @@ At first generate the JAR by executing `mvn package`, then manually install the
101101

102102
```java
103103
// For complete examples and data files, please go to https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-java-samples
104-
String MyAppKey = ""; // Get AppKey from https://dashboard.groupdocs.cloud
105-
String MyAppSid = ""; // Get AppSID from https://dashboard.groupdocs.cloud
104+
// Get Client Id and Client Secret from https://dashboard.groupdocs.cloud
105+
String MyClientId = "";
106+
String MyClientSecret = "";
106107

107-
Configuration configuration = new Configuration(MyAppSid, MyAppKey);
108+
Configuration configuration = new Configuration(MyClientId, MyClientSecret);
108109
ViewApi apiInstance = new ViewApi(configuration);
109110

110111
FileInfo fileInfo = new FileInfo();
111112
fileInfo.setFilePath("SampleFiles/sample.docx");
113+
112114
ViewOptions viewOptions = new ViewOptions();
113115
viewOptions.setFileInfo(fileInfo);
114116
viewOptions.setViewFormat(ViewFormatEnum.PDF);
117+
115118
PdfOptions renderOptions = new PdfOptions();
116119
renderOptions.setPermissions(PermissionsEnum.DENYMODIFICATION);
117120
renderOptions.setPermissionsPassword("p123");

0 commit comments

Comments
 (0)