| Package | Description |
|---|---|
| com.approveapi |
| Modifier and Type | Method and Description |
|---|---|
void |
ApiCallback.onFailure(ApiException e,
int statusCode,
Map<String,List<String>> responseHeaders)
This is called when the API call fails.
|
| Modifier and Type | Method and Description |
|---|---|
okhttp3.Call |
ApiClient.buildCall(String path,
String method,
List<Pair> queryParams,
List<Pair> collectionQueryParams,
Object body,
Map<String,String> headerParams,
Map<String,Object> formParams,
String[] authNames,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build HTTP call with the given options.
|
okhttp3.Request |
ApiClient.buildRequest(String path,
String method,
List<Pair> queryParams,
List<Pair> collectionQueryParams,
Object body,
Map<String,String> headerParams,
Map<String,Object> formParams,
String[] authNames,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build an HTTP request with the given options.
|
Prompt |
ApproveApi.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 |
ApproveApi.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 |
ApproveApi.createPromptCall(CreatePromptRequest createPromptRequest,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for createPrompt
|
ApiResponse<Prompt> |
ApproveApi.createPromptWithHttpInfo(CreatePromptRequest createPromptRequest)
Sending a prompt
Creates a prompt and pushes it to the user (sends via email, sms, or other supported protocols).
|
<T> T |
ApiClient.deserialize(okhttp3.Response response,
Type returnType)
Deserialize response body to Java object, according to the return type and
the Content-Type response header.
|
File |
ApiClient.downloadFileFromResponse(okhttp3.Response response)
Download file from the given response.
|
<T> ApiResponse<T> |
ApiClient.execute(okhttp3.Call call)
|
<T> ApiResponse<T> |
ApiClient.execute(okhttp3.Call call,
Type returnType)
Execute HTTP call and deserialize the HTTP response body into the given return type.
|
Prompt |
ApproveApi.getPrompt(String id,
Boolean longPoll)
Retrieve a prompt
Retrieve the prompt object with the given ID.
|
okhttp3.Call |
ApproveApi.getPromptAsync(String id,
Boolean longPoll,
ApiCallback<Prompt> callback)
Retrieve a prompt (asynchronously)
Retrieve the prompt object with the given ID.
|
okhttp3.Call |
ApproveApi.getPromptCall(String id,
Boolean longPoll,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getPrompt
|
PromptStatus |
ApproveApi.getPromptStatus(String id)
Check prompt status
Returns whether a prompt has been completed by the user.
|
okhttp3.Call |
ApproveApi.getPromptStatusAsync(String id,
ApiCallback<PromptStatus> callback)
Check prompt status (asynchronously)
Returns whether a prompt has been completed by the user.
|
okhttp3.Call |
ApproveApi.getPromptStatusCall(String id,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getPromptStatus
|
ApiResponse<PromptStatus> |
ApproveApi.getPromptStatusWithHttpInfo(String id)
Check prompt status
Returns whether a prompt has been completed by the user.
|
ApiResponse<Prompt> |
ApproveApi.getPromptWithHttpInfo(String id,
Boolean longPoll)
Retrieve a prompt
Retrieve the prompt object with the given ID.
|
<T> T |
ApiClient.handleResponse(okhttp3.Response response,
Type returnType)
Handle the given response, return the deserialized object when the response is successful.
|
okhttp3.RequestBody |
ApiClient.serialize(Object obj,
String contentType)
Serialize the given Java object into request body according to the object's
class and the request Content-Type.
|
Copyright © 2019. All rights reserved.