public class HttpClient extends Object
| Modifier and Type | Field and Description |
|---|---|
okhttp3.OkHttpClient |
client |
| Constructor and Description |
|---|
HttpClient() |
| Modifier and Type | Method and Description |
|---|---|
String |
sendDeleteRequest(String endpoint,
String apiKey,
Map<Object,Object> fields) |
String |
sendGetRequest(String endpoint,
String apiKey,
Map<Object,Object> fields) |
String |
sendPostRequest(String endpoint,
String apiKey,
Map<Object,Object> fields) |
public String sendGetRequest(String endpoint, String apiKey, Map<Object,Object> fields) throws IOException
IOExceptionpublic String sendPostRequest(String endpoint, String apiKey, Map<Object,Object> fields) throws IOException
IOExceptionpublic String sendDeleteRequest(String endpoint, String apiKey, Map<Object,Object> fields) throws IOException
IOExceptionCopyright © 2021. All rights reserved.