public class Resource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
endpoint |
protected static com.google.gson.Gson |
GSON |
protected List<String> |
requiredFields |
| Constructor and Description |
|---|
Resource(Service service,
String endpoint,
List<String> requiredFields) |
| Modifier and Type | Method and Description |
|---|---|
String |
request(String json)
Request using json String
|
String |
request(String json,
RequestOptions requestOptions)
Request using json String with additional request parameters like idempotency-key
|
String |
request(String json,
RequestOptions requestOptions,
ApiConstants.HttpMethod httpMethod,
Map<String,String> params)
Request using json String with additional request parameters like idempotency-key
|
protected static final com.google.gson.Gson GSON
protected String endpoint
public String request(String json) throws ApiException, IOException
json - request jsonApiException - ApiExceptionIOException - IOExceptionpublic String request(String json, RequestOptions requestOptions) throws ApiException, IOException
json - jsonrequestOptions - request optionsApiException - apiExceptionIOException - IOExceptionpublic String request(String json, RequestOptions requestOptions, ApiConstants.HttpMethod httpMethod, Map<String,String> params) throws ApiException, IOException
json - jsonrequestOptions - request optionshttpMethod - http methodparams - request parametersApiException - apiExceptionIOException - IOExceptionCopyright © 2022. All rights reserved.