Package com.mailjet.client.easy
Class MJEasyClient
java.lang.Object
com.mailjet.client.easy.MJEasyClient
public class MJEasyClient
extends java.lang.Object
Mailjet easy client
-
Constructor Summary
Constructors Constructor Description MJEasyClient()Constructor using the MJ_APIKEY_PUBLIC and MJ_APIKEY_PRIVATE environment variables.MJEasyClient(java.lang.String token)Constructor with tokenMJEasyClient(java.lang.String apiKeyPublic, java.lang.String apiKeyPrivate)Constructor with api keys -
Method Summary
Modifier and Type Method Description MJEasyEmailemail()Create an MJEasyEmail instance to prepare an email to send.MailjetClientgetClient()Get the internal Mailjet clientMJEasySmssms()Create anMJEasySmsinstance to prepare an email to send.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MJEasyClient
public MJEasyClient(java.lang.String apiKeyPublic, java.lang.String apiKeyPrivate)Constructor with api keys- Parameters:
apiKeyPublic- Public API KeyapiKeyPrivate- Private API Key
-
MJEasyClient
public MJEasyClient(java.lang.String token)Constructor with token- Parameters:
token- V4 api token
-
MJEasyClient
public MJEasyClient()Constructor using the MJ_APIKEY_PUBLIC and MJ_APIKEY_PRIVATE environment variables.
-
-
Method Details
-
getClient
Get the internal Mailjet client- Returns:
- MailjetClient instance
-
email
Create an MJEasyEmail instance to prepare an email to send.- Returns:
- MJEasyEMail instance
-
sms
Create anMJEasySmsinstance to prepare an email to send.- Returns:
MJEasyClientinstance
-