@@ -44,28 +44,21 @@ Add this dependency to your project's POM:
4444## Getting Started
4545
4646``` java
47+ // Start README example
4748
48- import com.aspose.words.cloud.ApiException ;
49- import com.aspose.words.cloud.api.WordsApi ;
50- import com.aspose.words.cloud.model.DocumentResponse ;
51- import com.aspose.words.cloud.model.requests.DeleteWatermarkRequest ;
49+ // if baseUrl is null, WordsApi uses default https://api.aspose.cloud
50+ WordsApi wordsApi = new WordsApi (appSid, appKey, baseUrl);
5251
53- import java.io.IOException ;
52+ String localPath = PathUtil . get(localFolder, fileName);
53+ String remotePath = PathUtil . get(remoteFolder, remoteName);
5454
55- public class WordsApiExample {
55+ UploadFileRequest uploadRequest = new UploadFileRequest (Files . readAllBytes(Paths . get(localPath)), remotePath, null );
56+ // wordsApi.uploadFile(uploadRequest);
5657
57- public static void main (String [] args ) throws ApiException , IOException {
58- // write your code here
59- WordsApi wordsApi = new WordsApi (" appSid" , " appKey" , null );
60- String remoteName = " TestDeleteDocumentWatermark.docx" ;
61- String remoteFolder = " TestFolder" ;
62- DeleteWatermarkRequest request = new DeleteWatermarkRequest (remoteName,
63- remoteFolder, null , null , null , null , null , null );
64-
65- DocumentResponse result = wordsApi. deleteWatermark(request);
66- }
67- }
58+ DeleteWatermarkRequest request = new DeleteWatermarkRequest (remoteName, remoteFolder, null , null , null , null , null , null );
59+ // DocumentResponse result = wordsApi.deleteWatermark(request);
6860
61+ // End README example
6962```
7063
7164[ Test] ( src/test/java/com/aspose/words/cloud ) contain various examples of using the SDK.
0 commit comments