public class SegmentsApi extends Object
| Constructor and Description |
|---|
SegmentsApi() |
SegmentsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
List<Segment> |
segmentsGet(Boolean includeHistory,
String from,
String to)
Lists all your available Segments
|
com.squareup.okhttp.Call |
segmentsGetAsync(Boolean includeHistory,
String from,
String to,
ApiCallback<List<Segment>> callback)
Lists all your available Segments (asynchronously)
|
com.squareup.okhttp.Call |
segmentsGetCall(Boolean includeHistory,
String from,
String to,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for segmentsGet
|
ApiResponse<List<Segment>> |
segmentsGetWithHttpInfo(Boolean includeHistory,
String from,
String to)
Lists all your available Segments
|
void |
segmentsNameDelete(String name)
Delete existing segment.
|
com.squareup.okhttp.Call |
segmentsNameDeleteAsync(String name,
ApiCallback<Void> callback)
Delete existing segment.
|
com.squareup.okhttp.Call |
segmentsNameDeleteCall(String name,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for segmentsNameDelete
|
ApiResponse<Void> |
segmentsNameDeleteWithHttpInfo(String name)
Delete existing segment.
|
Segment |
segmentsNameGet(String name,
Boolean includeHistory,
String from,
String to)
Lists your available Segment using the provided name
|
com.squareup.okhttp.Call |
segmentsNameGetAsync(String name,
Boolean includeHistory,
String from,
String to,
ApiCallback<Segment> callback)
Lists your available Segment using the provided name (asynchronously)
|
com.squareup.okhttp.Call |
segmentsNameGetCall(String name,
Boolean includeHistory,
String from,
String to,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for segmentsNameGet
|
ApiResponse<Segment> |
segmentsNameGetWithHttpInfo(String name,
Boolean includeHistory,
String from,
String to)
Lists your available Segment using the provided name
|
Segment |
segmentsNamePut(String name,
SegmentPayload body)
Rename or change RULE for your segment
|
com.squareup.okhttp.Call |
segmentsNamePutAsync(String name,
SegmentPayload body,
ApiCallback<Segment> callback)
Rename or change RULE for your segment (asynchronously)
|
com.squareup.okhttp.Call |
segmentsNamePutCall(String name,
SegmentPayload body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for segmentsNamePut
|
ApiResponse<Segment> |
segmentsNamePutWithHttpInfo(String name,
SegmentPayload body)
Rename or change RULE for your segment
|
Segment |
segmentsPost(SegmentPayload body)
Create new segment, based on specified RULE.
|
com.squareup.okhttp.Call |
segmentsPostAsync(SegmentPayload body,
ApiCallback<Segment> callback)
Create new segment, based on specified RULE.
|
com.squareup.okhttp.Call |
segmentsPostCall(SegmentPayload body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for segmentsPost
|
ApiResponse<Segment> |
segmentsPostWithHttpInfo(SegmentPayload body)
Create new segment, based on specified RULE.
|
void |
setApiClient(ApiClient apiClient) |
public SegmentsApi()
public SegmentsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call segmentsGetCall(Boolean includeHistory, String from, String to, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
includeHistory - True: Include history of last 30 days. Otherwise, false. (optional, default to False)from - From what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format. (optional)to - To what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic List<Segment> segmentsGet(Boolean includeHistory, String from, String to) throws ApiException
includeHistory - True: Include history of last 30 days. Otherwise, false. (optional, default to False)from - From what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format. (optional)to - To what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<List<Segment>> segmentsGetWithHttpInfo(Boolean includeHistory, String from, String to) throws ApiException
includeHistory - True: Include history of last 30 days. Otherwise, false. (optional, default to False)from - From what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format. (optional)to - To what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call segmentsGetAsync(Boolean includeHistory, String from, String to, ApiCallback<List<Segment>> callback) throws ApiException
includeHistory - True: Include history of last 30 days. Otherwise, false. (optional, default to False)from - From what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format. (optional)to - To what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format. (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 segmentsNameDeleteCall(String name, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
name - Name of your segment. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void segmentsNameDelete(String name) throws ApiException
name - Name of your segment. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> segmentsNameDeleteWithHttpInfo(String name) throws ApiException
name - Name of your segment. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call segmentsNameDeleteAsync(String name, ApiCallback<Void> callback) throws ApiException
name - Name of your segment. (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 segmentsNameGetCall(String name, Boolean includeHistory, String from, String to, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
name - Name of the segment you want to load. Will load all contacts if left empty or the 'All Contacts' name has been provided (required)includeHistory - True: Include history of last 30 days. Otherwise, false. (optional, default to False)from - From what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format. (optional)to - To what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Segment segmentsNameGet(String name, Boolean includeHistory, String from, String to) throws ApiException
name - Name of the segment you want to load. Will load all contacts if left empty or the 'All Contacts' name has been provided (required)includeHistory - True: Include history of last 30 days. Otherwise, false. (optional, default to False)from - From what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format. (optional)to - To what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Segment> segmentsNameGetWithHttpInfo(String name, Boolean includeHistory, String from, String to) throws ApiException
name - Name of the segment you want to load. Will load all contacts if left empty or the 'All Contacts' name has been provided (required)includeHistory - True: Include history of last 30 days. Otherwise, false. (optional, default to False)from - From what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format. (optional)to - To what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call segmentsNameGetAsync(String name, Boolean includeHistory, String from, String to, ApiCallback<Segment> callback) throws ApiException
name - Name of the segment you want to load. Will load all contacts if left empty or the 'All Contacts' name has been provided (required)includeHistory - True: Include history of last 30 days. Otherwise, false. (optional, default to False)from - From what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format. (optional)to - To what date should the segment history be shown. In YYYY-MM-DDThh:mm:ss format. (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 segmentsNamePutCall(String name, SegmentPayload body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
name - Name of your segment. (required)body - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Segment segmentsNamePut(String name, SegmentPayload body) throws ApiException
name - Name of your segment. (required)body - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Segment> segmentsNamePutWithHttpInfo(String name, SegmentPayload body) throws ApiException
name - Name of your segment. (required)body - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call segmentsNamePutAsync(String name, SegmentPayload body, ApiCallback<Segment> callback) throws ApiException
name - Name of your segment. (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 segmentsPostCall(SegmentPayload 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 Segment segmentsPost(SegmentPayload body) throws ApiException
body - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Segment> segmentsPostWithHttpInfo(SegmentPayload 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 segmentsPostAsync(SegmentPayload body, ApiCallback<Segment> 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 objectCopyright © 2019. All rights reserved.