public class RequestBuilder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
ApiResult |
get()
Sets up a GET request using the parameters so far specified.
|
java.util.Map<java.lang.String,java.lang.String> |
getParams() |
RequestBuilder |
param(java.lang.String key,
java.lang.String value)
Add a parameter to the current request.
|
ApiResult |
post()
Sets up a POST request using the parameters so far specified.
|
public java.util.Map<java.lang.String,java.lang.String> getParams()
public RequestBuilder param(java.lang.String key, java.lang.String value)
key - Parameter's namevalue - Parameter's valuepublic ApiResult get() throws ApiException
ApiResult.asArray() or
ApiResult.asObject() to actually start the network request
and get the response.ApiResult object which can be used to get the result of this query.ApiException - Thrown in the case of a network error.public ApiResult post() throws ApiException
ApiResult.asArray() or
ApiResult.asObject() to get the response.ApiResult object which can be used to get the result of this query.ApiException - Thrown in the case of a network error.