MailTmService class abstract

The mailtm rest api client.

Annotations
  • @RestApi(baseUrl: 'https://api.mail.tm')

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createAccount(String address, String password) Future<Account>
Creates an account
deleteAccount(String id, String token) Future<bool>
Deletes account from its id
deleteMessage(String id, String token) Future<bool>
Deletes a message from its id
downloadAttachment(String downloadUrl, String token) Future<List<int>>
Downloads the attachment
getAccount(String id, String token) Future<Account>
Gets an account from its id
getDomain(String id) Future<Domain>
Gets domain from its id
getDomains(int page) Future<HydraDomains>
Gets a domains list from its page
getMessage(String id, String token) Future<Message>
Gets a message from its id
getMessages(int page, String token) Future<HydraMessages>
Gets a messages list from its page
getMessageSource(String id, String token) Future<MessageSource>
Gets a message's source
getToken(String address, String password) Future<Token>
Get a JWT authentication token
me(String token) Future<Account>
Gets an account while being authenticated
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readMessage(String id, bool seen, String token) Future<bool>
Marks a message as read
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited