All URIs are relative to https://api.hellosign.com/v3
Method | HTTP request | Description |
---|---|---|
apiAppCreate | POST /api_app | Create API App |
apiAppDelete | DELETE /api_app/{client_id} | Delete API App |
apiAppGet | GET /api_app/{client_id} | Get API App |
apiAppList | GET /api_app/list | List API Apps |
apiAppUpdate | PUT /api_app/{client_id} | Update API App |
ApiAppGetResponse apiAppCreate(apiAppCreateRequest)
Create API App
Creates a new API App.
import com.dropbox.sign.ApiException;
import com.dropbox.sign.Configuration;
import com.dropbox.sign.api.*;
import com.dropbox.sign.auth.*;
import com.dropbox.sign.model.*;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
var apiClient = Configuration.getDefaultApiClient()
.setApiKey("YOUR_API_KEY");
// or, configure Bearer (JWT) authorization: oauth2
/*
var apiClient = Configuration.getDefaultApiClient()
.setBearerToken("YOUR_ACCESS_TOKEN");
*/
var apiAppApi = new ApiAppApi(apiClient);
var oauth = new SubOAuth()
.callbackUrl("https://example.com/oauth")
.scopes(List.of((SubOAuth.ScopesEnum.BASIC_ACCOUNT_INFO, SubOAuth.ScopesEnum.REQUEST_SIGNATURE));
var whiteLabelingOptions = new SubWhiteLabelingOptions()
.primaryButtonColor("#00b3e6")
.primaryButtonTextColor("#ffffff");
var customLogoFile = new File("CustomLogoFile.png");
var data = new ApiAppCreateRequest()
.name("My Production App")
.domains(List.of("example.com"))
.oauth(oauth)
.whiteLabelingOptions(whiteLabelingOptions)
.customLogoFile(customLogoFile);
try {
ApiAppGetResponse result = apiAppApi.apiAppCreate(data);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#accountCreate");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
apiAppCreateRequest | ApiAppCreateRequest |
- Content-Type: application/json, multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | successful operation | * X-RateLimit-Limit - * X-RateLimit-Remaining - * X-Ratelimit-Reset - |
4XX | failed_operation | - |
apiAppDelete(clientId)
Delete API App
Deletes an API App. Can only be invoked for apps you own.
import com.dropbox.sign.ApiException;
import com.dropbox.sign.Configuration;
import com.dropbox.sign.api.*;
import com.dropbox.sign.auth.*;
public class Example {
public static void main(String[] args) {
var apiClient = Configuration.getDefaultApiClient()
.setApiKey("YOUR_API_KEY");
// or, configure Bearer (JWT) authorization: oauth2
/*
var apiClient = Configuration.getDefaultApiClient()
.setBearerToken("YOUR_ACCESS_TOKEN");
*/
var apiAppApi = new ApiAppApi(apiClient);
var clientId = "0dd3b823a682527788c4e40cb7b6f7e9";
try {
apiAppApi.apiAppDelete(clientId);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#accountCreate");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
clientId | String | The client id of the API App to delete. |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | successful operation | * X-RateLimit-Limit - * X-RateLimit-Remaining - * X-Ratelimit-Reset - |
4XX | failed_operation | - |
ApiAppGetResponse apiAppGet(clientId)
Get API App
Returns an object with information about an API App.
import com.dropbox.sign.ApiException;
import com.dropbox.sign.Configuration;
import com.dropbox.sign.api.*;
import com.dropbox.sign.auth.*;
import com.dropbox.sign.model.*;
public class Example {
public static void main(String[] args) {
var apiClient = Configuration.getDefaultApiClient()
.setApiKey("YOUR_API_KEY");
// or, configure Bearer (JWT) authorization: oauth2
/*
var apiClient = Configuration.getDefaultApiClient()
.setBearerToken("YOUR_ACCESS_TOKEN");
*/
var apiAppApi = new ApiAppApi(apiClient);
var clientId = "0dd3b823a682527788c4e40cb7b6f7e9";
try {
ApiAppGetResponse result = apiAppApi.apiAppGet(clientId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#accountCreate");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
clientId | String | The client id of the API App to retrieve. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | * X-RateLimit-Limit - * X-RateLimit-Remaining - * X-Ratelimit-Reset - |
4XX | failed_operation | - |
ApiAppListResponse apiAppList(page, pageSize)
List API Apps
Returns a list of API Apps that are accessible by you. If you are on a team with an Admin or Developer role, this list will include apps owned by teammates.
import com.dropbox.sign.ApiException;
import com.dropbox.sign.Configuration;
import com.dropbox.sign.api.*;
import com.dropbox.sign.auth.*;
import com.dropbox.sign.model.*;
public class Example {
public static void main(String[] args) {
var apiClient = Configuration.getDefaultApiClient()
.setApiKey("YOUR_API_KEY");
// or, configure Bearer (JWT) authorization: oauth2
/*
var apiClient = Configuration.getDefaultApiClient()
.setBearerToken("YOUR_ACCESS_TOKEN");
*/
var apiAppApi = new ApiAppApi(apiClient);
var page = 1;
var pageSize = 2;
try {
ApiAppListResponse result = apiAppApi.apiAppList(page, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#accountCreate");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
page | Integer | Which page number of the API App List to return. Defaults to 1 . |
[optional] [default to 1] |
pageSize | Integer | Number of objects to be returned per page. Must be between 1 and 100 . Default is 20 . |
[optional] [default to 20] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | * X-RateLimit-Limit - * X-RateLimit-Remaining - * X-Ratelimit-Reset - |
4XX | failed_operation | - |
ApiAppGetResponse apiAppUpdate(clientId, apiAppUpdateRequest)
Update API App
Updates an existing API App. Can only be invoked for apps you own. Only the fields you provide will be updated. If you wish to clear an existing optional field, provide an empty string.
import com.dropbox.sign.ApiException;
import com.dropbox.sign.Configuration;
import com.dropbox.sign.api.*;
import com.dropbox.sign.auth.*;
import com.dropbox.sign.model.*;
import java.io.File;
import java.util.List;
public class Example {
public static void main(String[] args) {
var apiClient = Configuration.getDefaultApiClient()
.setApiKey("YOUR_API_KEY");
// or, configure Bearer (JWT) authorization: oauth2
/*
var apiClient = Configuration.getDefaultApiClient()
.setBearerToken("YOUR_ACCESS_TOKEN");
*/
var apiAppApi = new ApiAppApi(apiClient);
var oauth = new SubOAuth()
.callbackUrl("https://example.com/oauth")
.scopes(List.of(SubOAuth.ScopesEnum.BASIC_ACCOUNT_INFO, SubOAuth.ScopesEnum.REQUEST_SIGNATURE));
var whiteLabelingOptions = new SubWhiteLabelingOptions()
.primaryButtonColor("#00b3e6")
.primaryButtonTextColor("#ffffff");
var customLogoFile = new File("CustomLogoFile.png");
var data = new ApiAppUpdateRequest()
.name("My Production App")
.domains(List.of("example.com"))
.oauth(oauth)
.whiteLabelingOptions(whiteLabelingOptions)
.customLogoFile(customLogoFile);
var clientId = "0dd3b823a682527788c4e40cb7b6f7e9";
try {
ApiAppGetResponse result = apiAppApi.apiAppUpdate(clientId, data);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#accountCreate");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
clientId | String | The client id of the API App to update. | |
apiAppUpdateRequest | ApiAppUpdateRequest |
- Content-Type: application/json, multipart/form-data
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | successful operation | * X-RateLimit-Limit - * X-RateLimit-Remaining - * X-Ratelimit-Reset - |
4XX | failed_operation | - |