public class MJEasyClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_DEBUG |
static int |
NOCALL_DEBUG |
static int |
VERBOSE_DEBUG |
| Constructor and Description |
|---|
MJEasyClient()
Constructor using the MJ_APIKEY_PUBLIC and MJ_APIKEY_PRIVATE environment variables.
|
MJEasyClient(String apiKeyPublic,
String apiKeyPrivate)
Constructor with api keys
|
| Modifier and Type | Method and Description |
|---|---|
MJEasyEmail |
email()
Create an MJEasyEmail instance to prepare an email to send.
|
MailjetClient |
getClient()
Get the interal Mailjet client
|
MJEasyClient |
setDebug(int debug) |
public static final int NO_DEBUG
public static final int VERBOSE_DEBUG
public static final int NOCALL_DEBUG
public MJEasyClient(String apiKeyPublic, String apiKeyPrivate)
apiKeyPublic - Public API KeyapiKeyPrivate - Private API Keypublic MJEasyClient()
public MailjetClient getClient()
public MJEasyClient setDebug(int debug)
public MJEasyEmail email()
Copyright © 2017. All rights reserved.