new EmailsAPI(rest)
This class is used to interact with Emails in TidyHQ.
Parameters:
Name | Type | Description |
---|---|---|
rest | Rest | The rest instance to use for requests. |
- Source
Methods
(async) createEmail(email, optionsopt) → {Promise.<TidyAPI_V1_Email>}
Create a new email.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
email | object | The email to create.Properties
| ||||||||||||||
options | object | <optional> | {} | Properties
|
- Source
Returns:
- The email.
- Type:
- Promise.<TidyAPI_V1_Email>
(async) getEmail(email_id, optionsopt) → {Promise.<TidyAPI_V1_Email>}
Get a specific email associated with the access token.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
email_id | string | The ID of the email. | ||||||||||
options | object | <optional> | {} | Properties
|
- Source
Returns:
- The email.
- Type:
- Promise.<TidyAPI_V1_Email>
(async) getEmails(optionsopt) → {Promise.<TidyAPI_V1_Emails>}
Get the emails associated with the access token.
Parameters:
Name | Type | Attributes | Default | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | {} | Properties
|
- Source
Returns:
- The emails.
- Type:
- Promise.<TidyAPI_V1_Emails>