All URIs are relative to https://api.boldsign.com
Method | HTTP request | Description |
---|---|---|
contactUserList | GET /v1/contacts/list | List Contact document. |
createContact | POST /v1/contacts/create | Create the new Contact. |
deleteContacts | DELETE /v1/contacts/delete | Deletes a contact. |
getContact | GET /v1/contacts/get | Get summary of the contact. |
updateContact | PUT /v1/contacts/update | Update the contact. |
ContactsList contactUserList(page, pageSize, searchKey, contactType)
List Contact document.
// Import classes:
import com.boldsign.ApiClient;
import com.boldsign.ApiException;
import com.boldsign.Configuration;
import com.boldsign.auth.*;
import com.boldsign.models.*;
import com.boldsign.api.ContactsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.boldsign.com");
// Configure API key authorization: X-API-KEY
ApiKeyAuth X-API-KEY = (ApiKeyAuth) defaultClient.getAuthentication("X-API-KEY");
X-API-KEY.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-API-KEY.setApiKeyPrefix("Token");
// Configure API key authorization: Bearer
ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
Bearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.setApiKeyPrefix("Token");
ContactsApi apiInstance = new ContactsApi(defaultClient);
Integer page = 1; // Integer | Page index specified in get user contact list request. Default value is 1.
Integer pageSize = 10; // Integer | Page size specified in get user contact list request. Default value is 10.
String searchKey = "searchKey_example"; // String | Contacts can be listed by the search based on the Name or Email
String contactType = "MyContacts"; // String | Contact type whether the contact is My Contacts or All Contacts. Default value is AllContacts.
try {
ContactsList result = apiInstance.contactUserList(page, pageSize, searchKey, contactType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#contactUserList");
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 | Page index specified in get user contact list request. Default value is 1. | [default to 1] |
pageSize | Integer | Page size specified in get user contact list request. Default value is 10. | [optional] [default to 10] |
searchKey | String | Contacts can be listed by the search based on the Name or Email | [optional] |
contactType | String | Contact type whether the contact is My Contacts or All Contacts. Default value is AllContacts. | [optional] [enum: MyContacts, AllContacts] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
401 | Unauthorized | - |
400 | Bad Request | - |
CreateContactResponse createContact(contactDetails)
Create the new Contact.
// Import classes:
import com.boldsign.ApiClient;
import com.boldsign.ApiException;
import com.boldsign.Configuration;
import com.boldsign.auth.*;
import com.boldsign.models.*;
import com.boldsign.api.ContactsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.boldsign.com");
// Configure API key authorization: X-API-KEY
ApiKeyAuth X-API-KEY = (ApiKeyAuth) defaultClient.getAuthentication("X-API-KEY");
X-API-KEY.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-API-KEY.setApiKeyPrefix("Token");
// Configure API key authorization: Bearer
ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
Bearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.setApiKeyPrefix("Token");
ContactsApi apiInstance = new ContactsApi(defaultClient);
List<ContactDetails> contactDetails = Arrays.asList(); // List<ContactDetails> | The contact details.
try {
CreateContactResponse result = apiInstance.createContact(contactDetails);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#createContact");
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 |
---|---|---|---|
contactDetails | List<ContactDetails> | The contact details. | [optional] |
- Content-Type: application/json;odata.metadata=minimal;odata.streaming=true, application/json;odata.metadata=minimal;odata.streaming=false, application/json;odata.metadata=minimal, application/json;odata.metadata=full;odata.streaming=true, application/json;odata.metadata=full;odata.streaming=false, application/json;odata.metadata=full, application/json;odata.metadata=none;odata.streaming=true, application/json;odata.metadata=none;odata.streaming=false, application/json;odata.metadata=none, application/json;odata.streaming=true, application/json;odata.streaming=false, application/json, application/xml, application/prs.odatatestxx-odata, application/json-patch+json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
401 | Unauthorized | - |
400 | Bad Request | - |
deleteContacts(id)
Deletes a contact.
// Import classes:
import com.boldsign.ApiClient;
import com.boldsign.ApiException;
import com.boldsign.Configuration;
import com.boldsign.auth.*;
import com.boldsign.models.*;
import com.boldsign.api.ContactsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.boldsign.com");
// Configure API key authorization: X-API-KEY
ApiKeyAuth X-API-KEY = (ApiKeyAuth) defaultClient.getAuthentication("X-API-KEY");
X-API-KEY.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-API-KEY.setApiKeyPrefix("Token");
// Configure API key authorization: Bearer
ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
Bearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.setApiKeyPrefix("Token");
ContactsApi apiInstance = new ContactsApi(defaultClient);
String id = "id_example"; // String | The contact id.
try {
apiInstance.deleteContacts(id);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#deleteContacts");
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 |
---|---|---|---|
id | String | The contact id. |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
401 | Unauthorized | - |
403 | Forbidden | - |
ContactsDetails getContact(id)
Get summary of the contact.
// Import classes:
import com.boldsign.ApiClient;
import com.boldsign.ApiException;
import com.boldsign.Configuration;
import com.boldsign.auth.*;
import com.boldsign.models.*;
import com.boldsign.api.ContactsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.boldsign.com");
// Configure API key authorization: X-API-KEY
ApiKeyAuth X-API-KEY = (ApiKeyAuth) defaultClient.getAuthentication("X-API-KEY");
X-API-KEY.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-API-KEY.setApiKeyPrefix("Token");
// Configure API key authorization: Bearer
ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
Bearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.setApiKeyPrefix("Token");
ContactsApi apiInstance = new ContactsApi(defaultClient);
String id = "id_example"; // String | Contact Id.
try {
ContactsDetails result = apiInstance.getContact(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#getContact");
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 |
---|---|---|---|
id | String | Contact Id. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
401 | Unauthorized | - |
403 | Forbidden | - |
updateContact(id, contactDetails)
Update the contact.
// Import classes:
import com.boldsign.ApiClient;
import com.boldsign.ApiException;
import com.boldsign.Configuration;
import com.boldsign.auth.*;
import com.boldsign.models.*;
import com.boldsign.api.ContactsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.boldsign.com");
// Configure API key authorization: X-API-KEY
ApiKeyAuth X-API-KEY = (ApiKeyAuth) defaultClient.getAuthentication("X-API-KEY");
X-API-KEY.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-API-KEY.setApiKeyPrefix("Token");
// Configure API key authorization: Bearer
ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
Bearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.setApiKeyPrefix("Token");
ContactsApi apiInstance = new ContactsApi(defaultClient);
String id = "id_example"; // String | The contactId.
ContactDetails contactDetails = new ContactDetails(); // ContactDetails | The contact details.
try {
apiInstance.updateContact(id, contactDetails);
} catch (ApiException e) {
System.err.println("Exception when calling ContactsApi#updateContact");
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 |
---|---|---|---|
id | String | The contactId. | [optional] |
contactDetails | ContactDetails | The contact details. | [optional] |
null (empty response body)
- Content-Type: application/json;odata.metadata=minimal;odata.streaming=true, application/json;odata.metadata=minimal;odata.streaming=false, application/json;odata.metadata=minimal, application/json;odata.metadata=full;odata.streaming=true, application/json;odata.metadata=full;odata.streaming=false, application/json;odata.metadata=full, application/json;odata.metadata=none;odata.streaming=true, application/json;odata.metadata=none;odata.streaming=false, application/json;odata.metadata=none, application/json;odata.streaming=true, application/json;odata.streaming=false, application/json, application/xml, application/prs.odatatestxx-odata, application/json-patch+json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
401 | Unauthorized | - |
400 | Bad Request | - |