Class HttpClient
- java.lang.Object
-
- io.github.signalwirecommunity.http.HttpClient
-
public class HttpClient extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description HttpClient()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode>
deleteClient(java.lang.String url, java.lang.String projectId, java.lang.String apiToken)
static com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode>
getClient(java.lang.String url, java.lang.String projectId, java.lang.String apiToken)
static com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode>
getClient(java.lang.String url, java.lang.String projectId, java.lang.String apiToken, java.util.Map<java.lang.String,java.lang.Object> queryString)
static com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode>
postClient(java.lang.String url, java.lang.String projectId, java.lang.String apiToken, java.lang.String body)
static com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode>
postClient(java.lang.String url, java.lang.String projectId, java.lang.String apiToken, java.util.Map<java.lang.String,java.lang.Object> fields)
static com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode>
postClient(java.lang.String url, java.lang.String projectId, java.lang.String apiToken, org.json.JSONObject body)
-
-
-
Method Detail
-
postClient
public static com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> postClient(java.lang.String url, java.lang.String projectId, java.lang.String apiToken, java.lang.String body) throws com.mashape.unirest.http.exceptions.UnirestException
- Throws:
com.mashape.unirest.http.exceptions.UnirestException
-
postClient
public static com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> postClient(java.lang.String url, java.lang.String projectId, java.lang.String apiToken, org.json.JSONObject body) throws com.mashape.unirest.http.exceptions.UnirestException
- Throws:
com.mashape.unirest.http.exceptions.UnirestException
-
postClient
public static com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> postClient(java.lang.String url, java.lang.String projectId, java.lang.String apiToken, java.util.Map<java.lang.String,java.lang.Object> fields) throws com.mashape.unirest.http.exceptions.UnirestException
- Throws:
com.mashape.unirest.http.exceptions.UnirestException
-
getClient
public static com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> getClient(java.lang.String url, java.lang.String projectId, java.lang.String apiToken) throws com.mashape.unirest.http.exceptions.UnirestException
- Throws:
com.mashape.unirest.http.exceptions.UnirestException
-
getClient
public static com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> getClient(java.lang.String url, java.lang.String projectId, java.lang.String apiToken, java.util.Map<java.lang.String,java.lang.Object> queryString) throws com.mashape.unirest.http.exceptions.UnirestException
- Throws:
com.mashape.unirest.http.exceptions.UnirestException
-
deleteClient
public static com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> deleteClient(java.lang.String url, java.lang.String projectId, java.lang.String apiToken) throws com.mashape.unirest.http.exceptions.UnirestException
- Throws:
com.mashape.unirest.http.exceptions.UnirestException
-
-