Class: Messenger

Messenger()

new Messenger()

Represents a Messenger instance
Do not call constructor directly.
Source:
See:

Methods

send(sender, recipients, subject, content, attachmentsopt)

Send a message to a list of recipients
Parameters:
Name Type Attributes Description
sender JsonObject the sender
recipients JsonArray the list of recipients
subject string the subject of the message
content string the content of the message
attachments Array.<ApiStreamSource> <optional>
an array of attachments
Source:

sendWithTpl(sender, recipients, subject, template, data, attachmentsopt)

Send a message to a list of recipients using a template as content
Parameters:
Name Type Attributes Description
sender JsonObject the sender
recipients JsonArray the list of recipients
subject string the subject of the message
template ApiResource the template to use as message body
data JsonObject the data binding for the template
attachments Array.<ApiStreamSource> <optional>
an array of attachments
Source: