public class ContactsApi extends Object
| Constructor and Description |
|---|
ContactsApi() |
ContactsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
contactsDelete(String rule,
List<String> emails,
List<String> listNames)
Permanantly deletes the contacts provided.
|
com.squareup.okhttp.Call |
contactsDeleteAsync(String rule,
List<String> emails,
List<String> listNames,
ApiCallback<Void> callback)
Permanantly deletes the contacts provided.
|
com.squareup.okhttp.Call |
contactsDeleteCall(String rule,
List<String> emails,
List<String> listNames,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for contactsDelete
|
ApiResponse<Void> |
contactsDeleteWithHttpInfo(String rule,
List<String> emails,
List<String> listNames)
Permanantly deletes the contacts provided.
|
Contact |
contactsEmailGet(String email)
Load detailed contact information
|
com.squareup.okhttp.Call |
contactsEmailGetAsync(String email,
ApiCallback<Contact> callback)
Load detailed contact information (asynchronously)
|
com.squareup.okhttp.Call |
contactsEmailGetCall(String email,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for contactsEmailGet
|
ApiResponse<Contact> |
contactsEmailGetWithHttpInfo(String email)
Load detailed contact information
|
List<ContactHistory> |
contactsEmailHistoryGet(String email,
Integer limit,
Integer offset)
Shows detailed history of chosen Contact.
|
com.squareup.okhttp.Call |
contactsEmailHistoryGetAsync(String email,
Integer limit,
Integer offset,
ApiCallback<List<ContactHistory>> callback)
Shows detailed history of chosen Contact.
|
com.squareup.okhttp.Call |
contactsEmailHistoryGetCall(String email,
Integer limit,
Integer offset,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for contactsEmailHistoryGet
|
ApiResponse<List<ContactHistory>> |
contactsEmailHistoryGetWithHttpInfo(String email,
Integer limit,
Integer offset)
Shows detailed history of chosen Contact.
|
Contact |
contactsEmailPut(String email,
ContactUpdatePayload body)
Update selected contact.
|
com.squareup.okhttp.Call |
contactsEmailPutAsync(String email,
ContactUpdatePayload body,
ApiCallback<Contact> callback)
Update selected contact.
|
com.squareup.okhttp.Call |
contactsEmailPutCall(String email,
ContactUpdatePayload body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for contactsEmailPut
|
ApiResponse<Contact> |
contactsEmailPutWithHttpInfo(String email,
ContactUpdatePayload body)
Update selected contact.
|
List<Contact> |
contactsGet(String rule,
Integer limit,
Integer offset)
List of all contacts.
|
com.squareup.okhttp.Call |
contactsGetAsync(String rule,
Integer limit,
Integer offset,
ApiCallback<List<Contact>> callback)
List of all contacts.
|
com.squareup.okhttp.Call |
contactsGetCall(String rule,
Integer limit,
Integer offset,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for contactsGet
|
ApiResponse<List<Contact>> |
contactsGetWithHttpInfo(String rule,
Integer limit,
Integer offset)
List of all contacts.
|
List<Contact> |
contactsPost(QuickAddPayload body)
Add new Contact to one of your Lists.
|
com.squareup.okhttp.Call |
contactsPostAsync(QuickAddPayload body,
ApiCallback<List<Contact>> callback)
Add new Contact to one of your Lists.
|
com.squareup.okhttp.Call |
contactsPostCall(QuickAddPayload body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for contactsPost
|
ApiResponse<List<Contact>> |
contactsPostWithHttpInfo(QuickAddPayload body)
Add new Contact to one of your Lists.
|
ContactStats |
contactsStatsGet(String rule,
List<String> listNames)
Returns number of Contacts, RULE specifies contact Status.
|
com.squareup.okhttp.Call |
contactsStatsGetAsync(String rule,
List<String> listNames,
ApiCallback<ContactStats> callback)
Returns number of Contacts, RULE specifies contact Status.
|
com.squareup.okhttp.Call |
contactsStatsGetCall(String rule,
List<String> listNames,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for contactsStatsGet
|
ApiResponse<ContactStats> |
contactsStatsGetWithHttpInfo(String rule,
List<String> listNames)
Returns number of Contacts, RULE specifies contact Status.
|
ExportLink |
contactsTasksExportGet(String fileFormat,
String rule,
List<String> emails,
String compressionFormat,
String fileName,
List<String> listNames)
Export selected Contacts to file.
|
com.squareup.okhttp.Call |
contactsTasksExportGetAsync(String fileFormat,
String rule,
List<String> emails,
String compressionFormat,
String fileName,
List<String> listNames,
ApiCallback<ExportLink> callback)
Export selected Contacts to file.
|
com.squareup.okhttp.Call |
contactsTasksExportGetCall(String fileFormat,
String rule,
List<String> emails,
String compressionFormat,
String fileName,
List<String> listNames,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for contactsTasksExportGet
|
ApiResponse<ExportLink> |
contactsTasksExportGetWithHttpInfo(String fileFormat,
String rule,
List<String> emails,
String compressionFormat,
String fileName,
List<String> listNames)
Export selected Contacts to file.
|
void |
contactsTasksImportPost(File file,
Boolean allowUnsubscribe,
String listName,
String status,
String consentDate,
String consentIP,
String consentTracking)
Upload contacts from a file.
|
com.squareup.okhttp.Call |
contactsTasksImportPostAsync(File file,
Boolean allowUnsubscribe,
String listName,
String status,
String consentDate,
String consentIP,
String consentTracking,
ApiCallback<Void> callback)
Upload contacts from a file.
|
com.squareup.okhttp.Call |
contactsTasksImportPostCall(File file,
Boolean allowUnsubscribe,
String listName,
String status,
String consentDate,
String consentIP,
String consentTracking,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for contactsTasksImportPost
|
ApiResponse<Void> |
contactsTasksImportPostWithHttpInfo(File file,
Boolean allowUnsubscribe,
String listName,
String status,
String consentDate,
String consentIP,
String consentTracking)
Upload contacts from a file.
|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
public ContactsApi()
public ContactsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call contactsDeleteCall(String rule, List<String> emails, List<String> listNames, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
rule - Query used for filtering. (optional)emails - Comma delimited list of contact emails (optional)listNames - (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void contactsDelete(String rule, List<String> emails, List<String> listNames) throws ApiException
rule - Query used for filtering. (optional)emails - Comma delimited list of contact emails (optional)listNames - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> contactsDeleteWithHttpInfo(String rule, List<String> emails, List<String> listNames) throws ApiException
rule - Query used for filtering. (optional)emails - Comma delimited list of contact emails (optional)listNames - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call contactsDeleteAsync(String rule, List<String> emails, List<String> listNames, ApiCallback<Void> callback) throws ApiException
rule - Query used for filtering. (optional)emails - Comma delimited list of contact emails (optional)listNames - (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call contactsEmailGetCall(String email, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
email - Proper email address. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Contact contactsEmailGet(String email) throws ApiException
email - Proper email address. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Contact> contactsEmailGetWithHttpInfo(String email) throws ApiException
email - Proper email address. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call contactsEmailGetAsync(String email, ApiCallback<Contact> callback) throws ApiException
email - Proper email address. (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call contactsEmailHistoryGetCall(String email, Integer limit, Integer offset, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
email - Proper email address. (required)limit - Maximum of loaded items. (optional, default to 0)offset - How many items should be loaded ahead. (optional, default to 0)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic List<ContactHistory> contactsEmailHistoryGet(String email, Integer limit, Integer offset) throws ApiException
email - Proper email address. (required)limit - Maximum of loaded items. (optional, default to 0)offset - How many items should be loaded ahead. (optional, default to 0)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<ContactHistory>> contactsEmailHistoryGetWithHttpInfo(String email, Integer limit, Integer offset) throws ApiException
email - Proper email address. (required)limit - Maximum of loaded items. (optional, default to 0)offset - How many items should be loaded ahead. (optional, default to 0)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call contactsEmailHistoryGetAsync(String email, Integer limit, Integer offset, ApiCallback<List<ContactHistory>> callback) throws ApiException
email - Proper email address. (required)limit - Maximum of loaded items. (optional, default to 0)offset - How many items should be loaded ahead. (optional, default to 0)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call contactsEmailPutCall(String email, ContactUpdatePayload body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
email - Proper email address. (required)body - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Contact contactsEmailPut(String email, ContactUpdatePayload body) throws ApiException
email - Proper email address. (required)body - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Contact> contactsEmailPutWithHttpInfo(String email, ContactUpdatePayload body) throws ApiException
email - Proper email address. (required)body - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call contactsEmailPutAsync(String email, ContactUpdatePayload body, ApiCallback<Contact> callback) throws ApiException
email - Proper email address. (required)body - (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call contactsGetCall(String rule, Integer limit, Integer offset, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
rule - Query used for filtering. (optional)limit - Maximum of loaded items. (optional, default to 20)offset - How many items should be loaded ahead. (optional, default to 0)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic List<Contact> contactsGet(String rule, Integer limit, Integer offset) throws ApiException
rule - Query used for filtering. (optional)limit - Maximum of loaded items. (optional, default to 20)offset - How many items should be loaded ahead. (optional, default to 0)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<Contact>> contactsGetWithHttpInfo(String rule, Integer limit, Integer offset) throws ApiException
rule - Query used for filtering. (optional)limit - Maximum of loaded items. (optional, default to 20)offset - How many items should be loaded ahead. (optional, default to 0)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call contactsGetAsync(String rule, Integer limit, Integer offset, ApiCallback<List<Contact>> callback) throws ApiException
rule - Query used for filtering. (optional)limit - Maximum of loaded items. (optional, default to 20)offset - How many items should be loaded ahead. (optional, default to 0)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call contactsPostCall(QuickAddPayload body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
body - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic List<Contact> contactsPost(QuickAddPayload body) throws ApiException
body - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<Contact>> contactsPostWithHttpInfo(QuickAddPayload body) throws ApiException
body - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call contactsPostAsync(QuickAddPayload body, ApiCallback<List<Contact>> callback) throws ApiException
body - (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call contactsStatsGetCall(String rule, List<String> listNames, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
rule - Query used for filtering. (optional)listNames - (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic ContactStats contactsStatsGet(String rule, List<String> listNames) throws ApiException
rule - Query used for filtering. (optional)listNames - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ContactStats> contactsStatsGetWithHttpInfo(String rule, List<String> listNames) throws ApiException
rule - Query used for filtering. (optional)listNames - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call contactsStatsGetAsync(String rule, List<String> listNames, ApiCallback<ContactStats> callback) throws ApiException
rule - Query used for filtering. (optional)listNames - (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call contactsTasksExportGetCall(String fileFormat, String rule, List<String> emails, String compressionFormat, String fileName, List<String> listNames, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
fileFormat - Format of the exported file (optional, default to Csv)rule - Query used for filtering. (optional)emails - Comma delimited list of contact emails (optional)compressionFormat - FileResponse compression format. None or Zip. (optional, default to None)fileName - Name of your file. (optional)listNames - (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic ExportLink contactsTasksExportGet(String fileFormat, String rule, List<String> emails, String compressionFormat, String fileName, List<String> listNames) throws ApiException
fileFormat - Format of the exported file (optional, default to Csv)rule - Query used for filtering. (optional)emails - Comma delimited list of contact emails (optional)compressionFormat - FileResponse compression format. None or Zip. (optional, default to None)fileName - Name of your file. (optional)listNames - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ExportLink> contactsTasksExportGetWithHttpInfo(String fileFormat, String rule, List<String> emails, String compressionFormat, String fileName, List<String> listNames) throws ApiException
fileFormat - Format of the exported file (optional, default to Csv)rule - Query used for filtering. (optional)emails - Comma delimited list of contact emails (optional)compressionFormat - FileResponse compression format. None or Zip. (optional, default to None)fileName - Name of your file. (optional)listNames - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call contactsTasksExportGetAsync(String fileFormat, String rule, List<String> emails, String compressionFormat, String fileName, List<String> listNames, ApiCallback<ExportLink> callback) throws ApiException
fileFormat - Format of the exported file (optional, default to Csv)rule - Query used for filtering. (optional)emails - Comma delimited list of contact emails (optional)compressionFormat - FileResponse compression format. None or Zip. (optional, default to None)fileName - Name of your file. (optional)listNames - (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call contactsTasksImportPostCall(File file, Boolean allowUnsubscribe, String listName, String status, String consentDate, String consentIP, String consentTracking, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
file - (required)allowUnsubscribe - True: Allow unsubscribing from this list. Otherwise, false (optional, default to False)listName - Name of your list. (optional)status - Name of status: Active, Engaged, Inactive, Abuse, Bounced, Unsubscribed. (optional, default to Active)consentDate - Date of consent to send this contact(s) your email. If not provided current date is used for consent. (optional)consentIP - IP address of consent to send this contact(s) your email. If not provided your current public IP address is used for consent. (optional)consentTracking - (optional, default to Unknown)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void contactsTasksImportPost(File file, Boolean allowUnsubscribe, String listName, String status, String consentDate, String consentIP, String consentTracking) throws ApiException
file - (required)allowUnsubscribe - True: Allow unsubscribing from this list. Otherwise, false (optional, default to False)listName - Name of your list. (optional)status - Name of status: Active, Engaged, Inactive, Abuse, Bounced, Unsubscribed. (optional, default to Active)consentDate - Date of consent to send this contact(s) your email. If not provided current date is used for consent. (optional)consentIP - IP address of consent to send this contact(s) your email. If not provided your current public IP address is used for consent. (optional)consentTracking - (optional, default to Unknown)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> contactsTasksImportPostWithHttpInfo(File file, Boolean allowUnsubscribe, String listName, String status, String consentDate, String consentIP, String consentTracking) throws ApiException
file - (required)allowUnsubscribe - True: Allow unsubscribing from this list. Otherwise, false (optional, default to False)listName - Name of your list. (optional)status - Name of status: Active, Engaged, Inactive, Abuse, Bounced, Unsubscribed. (optional, default to Active)consentDate - Date of consent to send this contact(s) your email. If not provided current date is used for consent. (optional)consentIP - IP address of consent to send this contact(s) your email. If not provided your current public IP address is used for consent. (optional)consentTracking - (optional, default to Unknown)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call contactsTasksImportPostAsync(File file, Boolean allowUnsubscribe, String listName, String status, String consentDate, String consentIP, String consentTracking, ApiCallback<Void> callback) throws ApiException
file - (required)allowUnsubscribe - True: Allow unsubscribing from this list. Otherwise, false (optional, default to False)listName - Name of your list. (optional)status - Name of status: Active, Engaged, Inactive, Abuse, Bounced, Unsubscribed. (optional, default to Active)consentDate - Date of consent to send this contact(s) your email. If not provided current date is used for consent. (optional)consentIP - IP address of consent to send this contact(s) your email. If not provided your current public IP address is used for consent. (optional)consentTracking - (optional, default to Unknown)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2019. All rights reserved.