MandrillClient class abstract
The base class for the Mandrill HTTP client. There is a server and a browser implementation of this client.
- Implementers
Constructors
- MandrillClient(String apiKey, [MandrillOptions? options])
Properties
- apiKey → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- options → MandrillOptions
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call<
T extends MandrillResponse> (String path, Map body, T responseCoding, {ResponseParser< T> ? responseParser}) → Future<T> -
handleResponse(
int statusCode, String body) → dynamic -
Parses the body and returns a Map of the decoded json.
If the
statusCode
is not 200, then a MandrillException is thrown. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
request(
Uri uri, Map< String, String> headers, String body) → Future - The function that does the actual HTTP request.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
formatDate(
DateTime? date) → String? - Formats a DateTime the way the Mandrill API expects it.