public class AlpacaRequest
extends java.lang.Object
| Constructor | Description |
|---|---|
AlpacaRequest(java.lang.String keyId,
java.lang.String secret) |
Instantiates a new alpaca request.
|
| Modifier and Type | Method | Description |
|---|---|---|
<T> T |
getResponseObject(com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> httpResponse,
java.lang.reflect.Type type) |
Gets the response object.
|
com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> |
invokeDelete(AlpacaRequestBuilder builder) |
Invoke delete.
|
com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> |
invokeGet(AlpacaRequestBuilder builder) |
Invoke get.
|
com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> |
invokePost(AlpacaRequestBuilder builder) |
Invoke post.
|
public AlpacaRequest(java.lang.String keyId,
java.lang.String secret)
keyId - the key idsecret - the secretpublic com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> invokeGet(AlpacaRequestBuilder builder)
builder - the builderpublic com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> invokePost(AlpacaRequestBuilder builder)
builder - the builderpublic com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> invokeDelete(AlpacaRequestBuilder builder)
builder - the builderpublic <T> T getResponseObject(com.mashape.unirest.http.HttpResponse<com.mashape.unirest.http.JsonNode> httpResponse,
java.lang.reflect.Type type)
T - the generic typehttpResponse - the http responsetype - the type