-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFolderRootExample.java
29 lines (23 loc) · 1.05 KB
/
FolderRootExample.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import com.signnow.api.folder.request.FolderGetRequest;
import com.signnow.api.folder.response.FolderGetResponse;
import com.signnow.core.ApiClient;
import com.signnow.core.exception.SignNowApiException;
import com.signnow.core.factory.SdkFactory;
public class FolderRootExample {
public static void main(String[] args) {
// Set your actual input data here
// Note: following values are dummy, just for example
//----------------------------------------------------
// if it is not specified here, a new Bearer token will be created automatically
String bearerToken = "";
try {
ApiClient client = SdkFactory.createApiClientWithBearerToken(bearerToken);
FolderGetRequest request = new FolderGetRequest();
FolderGetResponse response = (FolderGetResponse) client.send(request).getResponse();
System.out.println("Root Folder ID: " + response.getId());
System.out.println("Root Folder Name: " + response.getName());
} catch (SignNowApiException e) {
System.out.println("ERROR: " + e.getMessage());
}
}
}