Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Lob
* The Lob API is organized around REST. Our API is designed to have predictable, resource-oriented URLs and uses HTTP response codes to indicate any API errors.
Looking for our [previous documentation](https://lob.github.io/legacy-docs/)?
*
* The version of the OpenAPI document: 1.3.0
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.lob.api.client;
import com.lob.api.ApiCallback;
import com.lob.api.ApiClient;
import com.lob.api.ApiException;
import com.lob.api.ApiResponse;
import com.lob.api.Configuration;
import com.lob.api.Pair;
import com.lob.api.ProgressRequestBody;
import com.lob.api.ProgressResponseBody;
import com.google.gson.reflect.TypeToken;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import com.lob.model.Buckslip;
import com.lob.model.BuckslipDeletion;
import com.lob.model.BuckslipEditable;
import com.lob.model.BuckslipUpdatable;
import com.lob.model.BuckslipsList;
import com.lob.model.LobError;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class BuckslipsApi {
private ApiClient localVarApiClient;
public BuckslipsApi() {
this(Configuration.getDefaultApiClient());
}
public BuckslipsApi(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public ApiClient getApiClient() {
return localVarApiClient;
}
public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
/**
* Build call for create
* @param buckslipEditable (required)
* @param front An optional file upload as either a byte array or file type. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Buckslip created successfully
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public okhttp3.Call createCall(BuckslipEditable buckslipEditable, Object front, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = buckslipEditable;
// create path and map variables
String localVarPath = "/buckslips";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (front != null) {
localVarFormParams = buckslipEditable.toMap();
try {
byte[] fileContent;
if(front instanceof File) {
fileContent = Files.readAllBytes(((File) front).toPath());
localVarFormParams.put("front", fileContent);
}
else if(front instanceof byte[]) {
fileContent = ((byte[]) front);
localVarFormParams.put("front", fileContent);
}
} catch (IOException e) {
e.printStackTrace();
}
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json", "application/x-www-form-urlencoded", "multipart/form-data"
};
final String localVarContentType = front != null ? "multipart/form-data" : localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basicAuth" };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createValidateBeforeCall(BuckslipEditable buckslipEditable, Object front, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'buckslipEditable' is set
if (buckslipEditable == null) {
throw new ApiException("Missing the required parameter 'buckslipEditable' when calling create(Async)");
}
okhttp3.Call localVarCall = createCall(buckslipEditable, front, _callback);
return localVarCall;
}
/**
* create
* Creates a new buckslip given information
* @param buckslipEditable (required)
* @param front An optional file upload as either a byte array or file type. (optional)
* @return Buckslip
* @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
Buckslip created successfully
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public Buckslip create(BuckslipEditable buckslipEditable, Object front) throws ApiException {
try {
ApiResponse localVarResp = createWithHttpInfo(buckslipEditable, front);
return localVarResp.getData();
} catch (ApiException e) {
throw e;
}
}
/**
* create
* Creates a new buckslip given information
* @param buckslipEditable (required)
* @param front An optional file upload as either a byte array or file type. (optional)
* @return ApiResponse<Buckslip>
* @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
Buckslip created successfully
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public ApiResponse createWithHttpInfo(BuckslipEditable buckslipEditable, Object front) throws ApiException {
try {
okhttp3.Call localVarCall = createValidateBeforeCall(buckslipEditable, front, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} catch (ApiException e) {
throw e;
}
}
/**
* create (asynchronously)
* Creates a new buckslip given information
* @param buckslipEditable (required)
* @param front An optional file upload as either a byte array or file type. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return 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
Buckslip created successfully
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public okhttp3.Call createAsync(BuckslipEditable buckslipEditable, Object front, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createValidateBeforeCall(buckslipEditable, front, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for delete
* @param buckslipId id of the buckslip (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Deleted the buckslip
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public okhttp3.Call deleteCall(String buckslipId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/buckslips/{buckslip_id}"
.replaceAll("\\{" + "buckslip_id" + "\\}", localVarApiClient.escapeString(buckslipId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basicAuth" };
return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteValidateBeforeCall(String buckslipId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'buckslipId' is set
if (buckslipId == null) {
throw new ApiException("Missing the required parameter 'buckslipId' when calling delete(Async)");
}
okhttp3.Call localVarCall = deleteCall(buckslipId, _callback);
return localVarCall;
}
/**
* delete
* Delete an existing buckslip. You need only supply the unique identifier that was returned upon buckslip creation.
* @param buckslipId id of the buckslip (required)
* @return BuckslipDeletion
* @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
Deleted the buckslip
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public BuckslipDeletion delete(String buckslipId) throws ApiException {
try {
ApiResponse localVarResp = deleteWithHttpInfo(buckslipId);
return localVarResp.getData();
} catch (ApiException e) {
throw e;
}
}
/**
* delete
* Delete an existing buckslip. You need only supply the unique identifier that was returned upon buckslip creation.
* @param buckslipId id of the buckslip (required)
* @return ApiResponse<BuckslipDeletion>
* @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
Deleted the buckslip
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public ApiResponse deleteWithHttpInfo(String buckslipId) throws ApiException {
try {
okhttp3.Call localVarCall = deleteValidateBeforeCall(buckslipId, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} catch (ApiException e) {
throw e;
}
}
/**
* delete (asynchronously)
* Delete an existing buckslip. You need only supply the unique identifier that was returned upon buckslip creation.
* @param buckslipId id of the buckslip (required)
* @param _callback The callback to be executed when the API call finishes
* @return 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
Deleted the buckslip
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public okhttp3.Call deleteAsync(String buckslipId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = deleteValidateBeforeCall(buckslipId, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for get
* @param buckslipId id of the buckslip (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Returns a buckslip object
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public okhttp3.Call getCall(String buckslipId, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/buckslips/{buckslip_id}"
.replaceAll("\\{" + "buckslip_id" + "\\}", localVarApiClient.escapeString(buckslipId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basicAuth" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getValidateBeforeCall(String buckslipId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'buckslipId' is set
if (buckslipId == null) {
throw new ApiException("Missing the required parameter 'buckslipId' when calling get(Async)");
}
okhttp3.Call localVarCall = getCall(buckslipId, _callback);
return localVarCall;
}
/**
* get
* Retrieves the details of an existing buckslip. You need only supply the unique customer identifier that was returned upon buckslip creation.
* @param buckslipId id of the buckslip (required)
* @return Buckslip
* @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
Returns a buckslip object
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public Buckslip get(String buckslipId) throws ApiException {
try {
ApiResponse localVarResp = getWithHttpInfo(buckslipId);
return localVarResp.getData();
} catch (ApiException e) {
throw e;
}
}
/**
* get
* Retrieves the details of an existing buckslip. You need only supply the unique customer identifier that was returned upon buckslip creation.
* @param buckslipId id of the buckslip (required)
* @return ApiResponse<Buckslip>
* @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
Returns a buckslip object
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public ApiResponse getWithHttpInfo(String buckslipId) throws ApiException {
try {
okhttp3.Call localVarCall = getValidateBeforeCall(buckslipId, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} catch (ApiException e) {
throw e;
}
}
/**
* get (asynchronously)
* Retrieves the details of an existing buckslip. You need only supply the unique customer identifier that was returned upon buckslip creation.
* @param buckslipId id of the buckslip (required)
* @param _callback The callback to be executed when the API call finishes
* @return 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
Returns a buckslip object
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public okhttp3.Call getAsync(String buckslipId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getValidateBeforeCall(buckslipId, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for update
* @param buckslipId id of the buckslip (required)
* @param buckslipUpdatable (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Returns a buckslip object
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public okhttp3.Call updateCall(String buckslipId, BuckslipUpdatable buckslipUpdatable, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = buckslipUpdatable;
// create path and map variables
String localVarPath = "/buckslips/{buckslip_id}"
.replaceAll("\\{" + "buckslip_id" + "\\}", localVarApiClient.escapeString(buckslipId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json", "application/x-www-form-urlencoded", "multipart/form-data"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basicAuth" };
return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call updateValidateBeforeCall(String buckslipId, BuckslipUpdatable buckslipUpdatable, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'buckslipId' is set
if (buckslipId == null) {
throw new ApiException("Missing the required parameter 'buckslipId' when calling update(Async)");
}
// verify the required parameter 'buckslipUpdatable' is set
if (buckslipUpdatable == null) {
throw new ApiException("Missing the required parameter 'buckslipUpdatable' when calling update(Async)");
}
okhttp3.Call localVarCall = updateCall(buckslipId, buckslipUpdatable, _callback);
return localVarCall;
}
/**
* update
* Update the details of an existing buckslip. You need only supply the unique identifier that was returned upon buckslip creation.
* @param buckslipId id of the buckslip (required)
* @param buckslipUpdatable (required)
* @return Buckslip
* @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
Returns a buckslip object
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public Buckslip update(String buckslipId, BuckslipUpdatable buckslipUpdatable) throws ApiException {
try {
ApiResponse localVarResp = updateWithHttpInfo(buckslipId, buckslipUpdatable);
return localVarResp.getData();
} catch (ApiException e) {
throw e;
}
}
/**
* update
* Update the details of an existing buckslip. You need only supply the unique identifier that was returned upon buckslip creation.
* @param buckslipId id of the buckslip (required)
* @param buckslipUpdatable (required)
* @return ApiResponse<Buckslip>
* @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
Returns a buckslip object
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public ApiResponse updateWithHttpInfo(String buckslipId, BuckslipUpdatable buckslipUpdatable) throws ApiException {
try {
okhttp3.Call localVarCall = updateValidateBeforeCall(buckslipId, buckslipUpdatable, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} catch (ApiException e) {
throw e;
}
}
/**
* update (asynchronously)
* Update the details of an existing buckslip. You need only supply the unique identifier that was returned upon buckslip creation.
* @param buckslipId id of the buckslip (required)
* @param buckslipUpdatable (required)
* @param _callback The callback to be executed when the API call finishes
* @return 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
Returns a buckslip object
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public okhttp3.Call updateAsync(String buckslipId, BuckslipUpdatable buckslipUpdatable, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = updateValidateBeforeCall(buckslipId, buckslipUpdatable, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for List
* @param limit How many results to return. (optional, default to 10)
* @param before A reference to a list entry used for paginating to the previous set of entries. This field is pre-populated in the `previous_url` field in the return response. (optional)
* @param after A reference to a list entry used for paginating to the next set of entries. This field is pre-populated in the `next_url` field in the return response. (optional)
* @param include Request that the response include the total count by specifying `include[]=total_count`. (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
description: Returns a list of buckslip objects
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public okhttp3.Call ListCall(Integer limit, String before, String after, List include, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/buckslips";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (limit != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit));
}
if (before != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("before", before));
}
if (after != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("after", after));
}
if (include != null) {
localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "include", include));
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "basicAuth" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call ListValidateBeforeCall(Integer limit, String before, String after, List include, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = ListCall(limit, before, after, include, _callback);
return localVarCall;
}
/**
* List
* Returns a list of your buckslips. The buckslips are returned sorted by creation date, with the most recently created buckslips appearing first.
* @param limit How many results to return. (optional, default to 10)
* @param before A reference to a list entry used for paginating to the previous set of entries. This field is pre-populated in the `previous_url` field in the return response. (optional)
* @param after A reference to a list entry used for paginating to the next set of entries. This field is pre-populated in the `next_url` field in the return response. (optional)
* @param include Request that the response include the total count by specifying `include[]=total_count`. (optional)
* @return BuckslipsList
* @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
description: Returns a list of buckslip objects
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public BuckslipsList List(Integer limit, String before, String after, List include) throws ApiException {
try {
ApiResponse localVarResp = ListWithHttpInfo(limit, before, after, include);
return localVarResp.getData();
} catch (ApiException e) {
throw e;
}
}
/**
* List
* Returns a list of your buckslips. The buckslips are returned sorted by creation date, with the most recently created buckslips appearing first.
* @param limit How many results to return. (optional, default to 10)
* @param before A reference to a list entry used for paginating to the previous set of entries. This field is pre-populated in the `previous_url` field in the return response. (optional)
* @param after A reference to a list entry used for paginating to the next set of entries. This field is pre-populated in the `next_url` field in the return response. (optional)
* @param include Request that the response include the total count by specifying `include[]=total_count`. (optional)
* @return ApiResponse<BuckslipsList>
* @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
description: Returns a list of buckslip objects
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public ApiResponse ListWithHttpInfo(Integer limit, String before, String after, List include) throws ApiException {
try {
okhttp3.Call localVarCall = ListValidateBeforeCall(limit, before, after, include, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
} catch (ApiException e) {
throw e;
}
}
/**
* List (asynchronously)
* Returns a list of your buckslips. The buckslips are returned sorted by creation date, with the most recently created buckslips appearing first.
* @param limit How many results to return. (optional, default to 10)
* @param before A reference to a list entry used for paginating to the previous set of entries. This field is pre-populated in the `previous_url` field in the return response. (optional)
* @param after A reference to a list entry used for paginating to the next set of entries. This field is pre-populated in the `next_url` field in the return response. (optional)
* @param include Request that the response include the total count by specifying `include[]=total_count`. (optional)
* @param _callback The callback to be executed when the API call finishes
* @return 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
description: Returns a list of buckslip objects
-
0
Lob uses RESTful HTTP response codes to indicate success or failure of an API request.
-
*/
public okhttp3.Call ListAsync(Integer limit, String before, String after, List include, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = ListValidateBeforeCall(limit, before, after, include, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
}