mailinator
Provides methods for working with Mailinator service - www.mailinator.com
delete
Deletes sepcific email.
** Example of the returned object:**
Parameters:
id
String
Message ID.
Returns:
Object
- Status.
fetch
Fetches specific email.
** Example of the returned object:**
Parameters:
id
String
Message ID.
Returns:
Object
- Email details. E.g.
getBody
Extracts first available email body.
Parameters:
emailObj
Object
Email object returned by mailiniator.fetch
Returns:
String
- Email body.
getSubject
Extracts email's subject.
Parameters:
emailObj
Object
Email object returned by mailiniator.fetch
Returns:
String
- Email subject.
init
Initializes mailinator module.
Parameters:
token
String
API token.
privateDomain
String
optional
Specifies whether to use a private domain.
list
Fetches inbox messages or all saved messages.
** Example of the returned object:**
Parameters:
inbox
String
optional
Inbox name. If ommited saved messages will be fetched instead.
Returns:
Object
- List containing message details.
Last updated