public class ApiRequestor
extends java.lang.Object
| Constructor and Description |
|---|
ApiRequestor(Chargehound chargehound) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.client.http.HttpResponse |
request(java.lang.String method,
java.lang.String path)
Make an http request to the Chargehound API.
|
com.google.api.client.http.HttpResponse |
request(java.lang.String method,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> params)
Make an http request to the Chargehound API.
|
com.google.api.client.http.HttpResponse |
request(java.lang.String method,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> params,
com.google.api.client.json.GenericJson data)
Make an http request to the Chargehound API.
|
public ApiRequestor(Chargehound chargehound)
public com.google.api.client.http.HttpResponse request(java.lang.String method,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> params,
com.google.api.client.json.GenericJson data)
throws ChargehoundException
method - the http methodpath - the URL pathparams - the query parametersdata - the request body dataChargehoundException - Exception on failed API requestpublic com.google.api.client.http.HttpResponse request(java.lang.String method,
java.lang.String path)
throws ChargehoundException
method - the http methodpath - the URL pathChargehoundException - Exception on failed API requestpublic com.google.api.client.http.HttpResponse request(java.lang.String method,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.Object> params)
throws ChargehoundException
method - the http methodpath - the URL pathparams - the query parametersChargehoundException - Exception on failed API request