public class Client extends Object
| Constructor and Description |
|---|
Client(String apiUrl)
Client constructor.
|
| Modifier and Type | Method and Description |
|---|---|
RawResponse |
get(String route)
wraps the doRequest method to do a GET HTTP request.
|
RawResponse |
get(String route,
HashMap<String,String> queryValues)
wraps the doRequest method to do a GET HTTP request.
|
RawResponse |
post(String route,
byte[] body)
wraps the doRequest method to do a POST HTTP request.
|
RawResponse |
post(String route,
byte[] body,
HashMap<String,String> queryValues)
wraps the doRequest method to do a POST HTTP request.
|
public Client(String apiUrl)
apiUrl - public RawResponse get(String route) throws IOException
route - IOExceptionpublic RawResponse get(String route, HashMap<String,String> queryValues) throws IOException
route - queryValues - IOExceptionpublic RawResponse post(String route, byte[] body) throws IOException
route - body - IOExceptionpublic RawResponse post(String route, byte[] body, HashMap<String,String> queryValues) throws IOException
body - route - queryValues - IOExceptionCopyright © 2020 Transchain. All rights reserved.