public class ApproveApi extends Object
| Constructor and Description |
|---|
ApproveApi() |
ApproveApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
Prompt |
createPrompt(CreatePromptRequest createPromptRequest)
Sending a prompt
Creates a prompt and pushes it to the user (sends via email, sms, or other supported protocols).
|
okhttp3.Call |
createPromptAsync(CreatePromptRequest createPromptRequest,
ApiCallback<Prompt> callback)
Sending a prompt (asynchronously)
Creates a prompt and pushes it to the user (sends via email, sms, or other supported protocols).
|
okhttp3.Call |
createPromptCall(CreatePromptRequest createPromptRequest,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createPrompt
|
ApiResponse<Prompt> |
createPromptWithHttpInfo(CreatePromptRequest createPromptRequest)
Sending a prompt
Creates a prompt and pushes it to the user (sends via email, sms, or other supported protocols).
|
ApiClient |
getApiClient() |
Prompt |
getPrompt(String id,
Boolean longPoll)
Retrieve a prompt
Retrieve the prompt object with the given ID.
|
okhttp3.Call |
getPromptAsync(String id,
Boolean longPoll,
ApiCallback<Prompt> callback)
Retrieve a prompt (asynchronously)
Retrieve the prompt object with the given ID.
|
okhttp3.Call |
getPromptCall(String id,
Boolean longPoll,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getPrompt
|
PromptStatus |
getPromptStatus(String id)
Check prompt status
Returns whether a prompt has been completed by the user.
|
okhttp3.Call |
getPromptStatusAsync(String id,
ApiCallback<PromptStatus> callback)
Check prompt status (asynchronously)
Returns whether a prompt has been completed by the user.
|
okhttp3.Call |
getPromptStatusCall(String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getPromptStatus
|
ApiResponse<PromptStatus> |
getPromptStatusWithHttpInfo(String id)
Check prompt status
Returns whether a prompt has been completed by the user.
|
ApiResponse<Prompt> |
getPromptWithHttpInfo(String id,
Boolean longPoll)
Retrieve a prompt
Retrieve the prompt object with the given ID.
|
void |
setApiClient(ApiClient apiClient) |
public ApproveApi()
public ApproveApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call createPromptCall(CreatePromptRequest createPromptRequest, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
createPromptRequest - (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Prompt createPrompt(CreatePromptRequest createPromptRequest) throws ApiException
createPromptRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Prompt> createPromptWithHttpInfo(CreatePromptRequest createPromptRequest) throws ApiException
createPromptRequest - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call createPromptAsync(CreatePromptRequest createPromptRequest, ApiCallback<Prompt> callback) throws ApiException
createPromptRequest - (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 okhttp3.Call getPromptCall(String id, Boolean longPoll, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - The identifier for a pending or completed prompt. This is returned when you create a prompt. (required)longPoll - If true, the request waits (long-polls) until the user responds to the prompt or more than 10 minutes pass. Defaults to false. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic Prompt getPrompt(String id, Boolean longPoll) throws ApiException
id - The identifier for a pending or completed prompt. This is returned when you create a prompt. (required)longPoll - If true, the request waits (long-polls) until the user responds to the prompt or more than 10 minutes pass. Defaults to false. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Prompt> getPromptWithHttpInfo(String id, Boolean longPoll) throws ApiException
id - The identifier for a pending or completed prompt. This is returned when you create a prompt. (required)longPoll - If true, the request waits (long-polls) until the user responds to the prompt or more than 10 minutes pass. Defaults to false. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getPromptAsync(String id, Boolean longPoll, ApiCallback<Prompt> callback) throws ApiException
id - The identifier for a pending or completed prompt. This is returned when you create a prompt. (required)longPoll - If true, the request waits (long-polls) until the user responds to the prompt or more than 10 minutes pass. Defaults to false. (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 okhttp3.Call getPromptStatusCall(String id, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
id - The prompt identifier. (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic PromptStatus getPromptStatus(String id) throws ApiException
id - The prompt identifier. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<PromptStatus> getPromptStatusWithHttpInfo(String id) throws ApiException
id - The prompt identifier. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getPromptStatusAsync(String id, ApiCallback<PromptStatus> callback) throws ApiException
id - The prompt identifier. (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.