MessageClient class
The MessageClient class is the default message client class
used for communicating with the <domain>/messages
endpoint.
Methods:
- MessageClient.send sends an email using the mailgun API.
- MessageClient.sendMime - sends a MIME email using the mailgun API.
- Inheritance
-
- Object
- BaseClient
- MessageClient
Constructors
- MessageClient(Client client, String domain, String apiKey, String host, [Callback? callback])
- Initialise a MessageClient instance.
Properties
- apiKey → String
-
apiKey is the API key of the Mailgun account used to authenticate requests
finalinherited
- callback → Callback?
-
callback is a callback function that is called after every request
finalinherited
- client → Client
-
client is the http client used to make requests
finalinherited
- domain → String
-
domain is the domain of the Mailgun account
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → String
-
host is the host of the Mailgun API, either
api.eu.mailgun.net
orapi.mailgun.net
finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
MessageParams params) → Future< Response> -
sendMime(
MimeMessageParams params) → Future< Response> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited