Class ContactsApi
java.lang.Object
com.boldsign.api.ContactsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontactUserList(Integer page, Integer pageSize, String searchKey, String contactType) List Contact document.okhttp3.CallcontactUserListAsync(Integer page, Integer pageSize, String searchKey, String contactType, ApiCallback<ContactsList> _callback) List Contact document.okhttp3.CallcontactUserListCall(Integer page, Integer pageSize, String searchKey, String contactType, ApiCallback _callback) Build call for contactUserListcontactUserListWithHttpInfo(Integer page, Integer pageSize, String searchKey, String contactType) List Contact document.createContact(List<ContactDetails> contactDetails) Create the new Contact.okhttp3.CallcreateContactAsync(List<ContactDetails> contactDetails, ApiCallback<CreateContactResponse> _callback) Create the new Contact.okhttp3.CallcreateContactCall(List<ContactDetails> contactDetails, ApiCallback _callback) Build call for createContactcreateContactWithHttpInfo(List<ContactDetails> contactDetails) Create the new Contact.voiddeleteContacts(String id) Deletes a contact.okhttp3.CalldeleteContactsAsync(String id, ApiCallback<Void> _callback) Deletes a contact.okhttp3.CalldeleteContactsCall(String id, ApiCallback _callback) Build call for deleteContactsDeletes a contact.getContact(String id) Get summary of the contact.okhttp3.CallgetContactAsync(String id, ApiCallback<ContactsDetails> _callback) Get summary of the contact.okhttp3.CallgetContactCall(String id, ApiCallback _callback) Build call for getContactGet summary of the contact.intvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) voidupdateContact(String id, ContactDetails contactDetails) Update the contact.okhttp3.CallupdateContactAsync(String id, ContactDetails contactDetails, ApiCallback<Void> _callback) Update the contact.okhttp3.CallupdateContactCall(String id, ContactDetails contactDetails, ApiCallback _callback) Build call for updateContactupdateContactWithHttpInfo(String id, ContactDetails contactDetails) Update the contact.
-
Constructor Details
-
ContactsApi
public ContactsApi() -
ContactsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
contactUserListCall
public okhttp3.Call contactUserListCall(Integer page, Integer pageSize, String searchKey, String contactType, ApiCallback _callback) throws ApiException Build call for contactUserList- Parameters:
page- Page index specified in get user contact list request. Default value is 1. (required)pageSize- Page size specified in get user contact list request. Default value is 10. (optional, default to 10)searchKey- Contacts can be listed by the search based on the Name or Email (optional)contactType- Contact type whether the contact is My Contacts or All Contacts. Default value is AllContacts. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 OK - 401 Unauthorized - 400 Bad Request -
-
contactUserList
public ContactsList contactUserList(Integer page, Integer pageSize, String searchKey, String contactType) throws ApiException List Contact document.- Parameters:
page- Page index specified in get user contact list request. Default value is 1. (required)pageSize- Page size specified in get user contact list request. Default value is 10. (optional, default to 10)searchKey- Contacts can be listed by the search based on the Name or Email (optional)contactType- Contact type whether the contact is My Contacts or All Contacts. Default value is AllContacts. (optional)- Returns:
- ContactsList
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 OK - 401 Unauthorized - 400 Bad Request -
-
contactUserListWithHttpInfo
public ApiResponse<ContactsList> contactUserListWithHttpInfo(Integer page, Integer pageSize, String searchKey, String contactType) throws ApiException List Contact document.- Parameters:
page- Page index specified in get user contact list request. Default value is 1. (required)pageSize- Page size specified in get user contact list request. Default value is 10. (optional, default to 10)searchKey- Contacts can be listed by the search based on the Name or Email (optional)contactType- Contact type whether the contact is My Contacts or All Contacts. Default value is AllContacts. (optional)- Returns:
- ApiResponse<ContactsList>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 OK - 401 Unauthorized - 400 Bad Request -
-
contactUserListAsync
public okhttp3.Call contactUserListAsync(Integer page, Integer pageSize, String searchKey, String contactType, ApiCallback<ContactsList> _callback) throws ApiException List Contact document. (asynchronously)- Parameters:
page- Page index specified in get user contact list request. Default value is 1. (required)pageSize- Page size specified in get user contact list request. Default value is 10. (optional, default to 10)searchKey- Contacts can be listed by the search based on the Name or Email (optional)contactType- Contact type whether the contact is My Contacts or All Contacts. Default value is AllContacts. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 OK - 401 Unauthorized - 400 Bad Request -
-
createContactCall
public okhttp3.Call createContactCall(List<ContactDetails> contactDetails, ApiCallback _callback) throws ApiException Build call for createContact- Parameters:
contactDetails- The contact details. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 201 Created - 401 Unauthorized - 400 Bad Request -
-
createContact
Create the new Contact.- Parameters:
contactDetails- The contact details. (optional)- Returns:
- CreateContactResponse
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 201 Created - 401 Unauthorized - 400 Bad Request -
-
createContactWithHttpInfo
public ApiResponse<CreateContactResponse> createContactWithHttpInfo(List<ContactDetails> contactDetails) throws ApiException Create the new Contact.- Parameters:
contactDetails- The contact details. (optional)- Returns:
- ApiResponse<CreateContactResponse>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 201 Created - 401 Unauthorized - 400 Bad Request -
-
createContactAsync
public okhttp3.Call createContactAsync(List<ContactDetails> contactDetails, ApiCallback<CreateContactResponse> _callback) throws ApiException Create the new Contact. (asynchronously)- Parameters:
contactDetails- The contact details. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 201 Created - 401 Unauthorized - 400 Bad Request -
-
deleteContactsCall
Build call for deleteContacts- Parameters:
id- The contact id. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 204 No Content - 401 Unauthorized - 403 Forbidden -
-
deleteContacts
Deletes a contact.- Parameters:
id- The contact id. (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 204 No Content - 401 Unauthorized - 403 Forbidden -
-
deleteContactsWithHttpInfo
Deletes a contact.- Parameters:
id- The contact id. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 204 No Content - 401 Unauthorized - 403 Forbidden -
-
deleteContactsAsync
Deletes a contact. (asynchronously)- Parameters:
id- The contact id. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 204 No Content - 401 Unauthorized - 403 Forbidden -
-
getContactCall
Build call for getContact- Parameters:
id- Contact Id. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 OK - 401 Unauthorized - 403 Forbidden -
-
getContact
Get summary of the contact.- Parameters:
id- Contact Id. (required)- Returns:
- ContactsDetails
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 OK - 401 Unauthorized - 403 Forbidden -
-
getContactWithHttpInfo
Get summary of the contact.- Parameters:
id- Contact Id. (required)- Returns:
- ApiResponse<ContactsDetails>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 OK - 401 Unauthorized - 403 Forbidden -
-
getContactAsync
public okhttp3.Call getContactAsync(String id, ApiCallback<ContactsDetails> _callback) throws ApiException Get summary of the contact. (asynchronously)- Parameters:
id- Contact Id. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 OK - 401 Unauthorized - 403 Forbidden -
-
updateContactCall
public okhttp3.Call updateContactCall(String id, ContactDetails contactDetails, ApiCallback _callback) throws ApiException Build call for updateContact- Parameters:
id- The contactId. (optional)contactDetails- The contact details. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 OK - 401 Unauthorized - 400 Bad Request -
-
updateContact
Update the contact.- Parameters:
id- The contactId. (optional)contactDetails- The contact details. (optional)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 OK - 401 Unauthorized - 400 Bad Request -
-
updateContactWithHttpInfo
public ApiResponse<Void> updateContactWithHttpInfo(String id, ContactDetails contactDetails) throws ApiException Update the contact.- Parameters:
id- The contactId. (optional)contactDetails- The contact details. (optional)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 OK - 401 Unauthorized - 400 Bad Request -
-
updateContactAsync
public okhttp3.Call updateContactAsync(String id, ContactDetails contactDetails, ApiCallback<Void> _callback) throws ApiException Update the contact. (asynchronously)- Parameters:
id- The contactId. (optional)contactDetails- The contact details. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 OK - 401 Unauthorized - 400 Bad Request -
-