Package com.cuenca
Class CuencaClient
- java.lang.Object
-
- com.cuenca.CuencaClient
-
public class CuencaClient extends Object
-
-
Constructor Summary
Constructors Constructor Description CuencaClient(String apiKeyId, String apiSecret)CuencaClient(String apiKeyId, String apiSecret, HttpClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponse<String>delete(String endpoint)HttpResponse<String>delete(String endpoint, String body)HttpResponse<String>get(String endpoint)HttpResponse<String>get(String endpoint, String body)HttpResponse<String>patch(String endpoint, String body)HttpResponse<String>post(String endpoint, String body)
-
-
-
Constructor Detail
-
CuencaClient
public CuencaClient(String apiKeyId, String apiSecret, HttpClient client)
-
-
Method Detail
-
get
public HttpResponse<String> get(String endpoint) throws Exception
- Throws:
Exception
-
get
public HttpResponse<String> get(String endpoint, String body) throws Exception
- Throws:
Exception
-
post
public HttpResponse<String> post(String endpoint, String body) throws Exception
- Throws:
Exception
-
patch
public HttpResponse<String> patch(String endpoint, String body) throws Exception
- Throws:
Exception
-
delete
public HttpResponse<String> delete(String endpoint) throws Exception
- Throws:
Exception
-
-