Class: Messages

Messages

Messages - Used for admin initiated conversations

Constructor

new Messages()

Author:
  • Sohail Ahmed
Source:

Methods

create(messageData) → {Promise}

Initiate a conversation given necessary parameters
Parameters:
Name Type Description
messageData Object
Properties
Name Type Description
message_type Object Email or Message
subject Object Email subject line
body Object Message body
template Object Email template
from Object from object with type and id keys required
to Object to object with type and id keys required
Source:
See:
Returns:
- Returns success if intercom is disabled, otherwise returns results of create command in intercom
Type
Promise