public class MailjetClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_DEBUG |
static int |
NOCALL_DEBUG |
static int |
VERBOSE_DEBUG |
| Constructor and Description |
|---|
MailjetClient(String apiKey,
String apiSecret)
Create a new Instance of the MailjetClient class and register the APIKEY/APISECRET
|
MailjetClient(String apiKey,
String apiSecret,
ClientOptions options)
Create a new Instance of the MailjetClient class and register the APIKEY/APISECRET.
|
MailjetClient(String apiKey,
String apiSecret,
com.turbomanage.httpclient.RequestHandler handler)
Create a new Instance of the MailjetClient class and register the APIKEY/APISECRET.
|
MailjetClient(String apiKey,
String apiSecret,
com.turbomanage.httpclient.RequestHandler handler,
ClientOptions options)
Create a new Instance of the MailjetClient class and register the APIKEY/APISECRET.
|
| Modifier and Type | Method and Description |
|---|---|
MailjetResponse |
delete(MailjetRequest request) |
MailjetResponse |
get(MailjetRequest request)
Perform a get Request on a Mailjet endpoint
|
MailjetResponse |
post(MailjetRequest request)
perform a Mailjet POST request.
|
MailjetResponse |
put(MailjetRequest request) |
void |
setDebug(int debug)
Set the debug level
|
public static final int NO_DEBUG
public static final int VERBOSE_DEBUG
public static final int NOCALL_DEBUG
public MailjetClient(String apiKey, String apiSecret)
apiKey - apiSecret - public MailjetClient(String apiKey, String apiSecret, com.turbomanage.httpclient.RequestHandler handler)
apiKey - apiSecret - handler - public MailjetClient(String apiKey, String apiSecret, ClientOptions options)
apiKey - apiSecret - options - public MailjetClient(String apiKey, String apiSecret, com.turbomanage.httpclient.RequestHandler handler, ClientOptions options)
apiKey - apiSecret - handler - options - public void setDebug(int debug)
debug: - VERBOSE_DEBUG: prints every URL/payload.
NOCALL_DEBUG: returns the URL + payload in a JSONObject.
NO_DEBUG: usual call.public MailjetResponse get(MailjetRequest request) throws MailjetException, MailjetSocketTimeoutException
request - MailjetExceptionMailjetSocketTimeoutExceptionpublic MailjetResponse post(MailjetRequest request) throws MailjetException, MailjetSocketTimeoutException
request - MailjetExceptionMailjetSocketTimeoutExceptionpublic MailjetResponse put(MailjetRequest request) throws MailjetException, MailjetSocketTimeoutException
public MailjetResponse delete(MailjetRequest request) throws MailjetException, MailjetSocketTimeoutException
Copyright © 2017. All rights reserved.