File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,30 +94,16 @@ Then manually install the following JARs:
9494
9595``` java
9696
97- import com.groupdocs.cloud.annotation.client.* ;
98- import com.groupdocs.cloud.annotation.model.* ;
99- import com.groupdocs.cloud.annotation.api.AnnotateApi ;
100-
101- import java.io.File ;
102- import java.util.* ;
103-
104- public class AnnotateApiExample {
105-
106- public static void main (String [] args ) {
107- // TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required).
108- String appSid = " XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" ;
109- String appKey = " XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ;
110-
111- AnnotateApi apiInstance = new AnnotateApi (appSid, appKey);
112- String filePath = " filePath_example" ; // String | Document path in storage
113- try {
114- apiInstance. deleteAnnotations(filePath);
115- } catch (ApiException e) {
116- System . err. println(" Exception when calling AnnotateApi#deleteAnnotations" );
117- e. printStackTrace();
118- }
119- }
120- }
97+ // Get Client Id and Client Secret from https://dashboard.groupdocs.cloud
98+ String MyClientId = " " ;
99+ String MyClientSecret = " " ;
100+
101+ // Create instance of the API
102+ Configuration configuration = new Configuration (MyClientId , MyClientSecret );
103+ AnnotateApi apiInstance = new AnnotateApi (configuration);
104+
105+ String filePath = " filePath_example" ; // String | Document path in storage
106+ apiInstance. deleteAnnotations(filePath);
121107
122108```
123109
You can’t perform that action at this time.
0 commit comments