postToPerson

abstract fun postToPerson(    email: EmailAddress,     text: Message.Text?,     files: ArrayList<LocalFile>?,     handler: CompletionHandler<Message>)

Posts a message with optional file attachments to a person asynchronously. The content of the message can be plain text, html, or markdown.

Since

2.3.0

Parameters

email
  • The email address of a person to which the message is to be posted.

text
  • The content of message to be posted to the person. The content can be plain text, html, or markdown.

files
  • Local files to be attached with the message. Null if no files to be attached.

handler
  • A closure to be executed once the message has posted.


abstract fun postToPerson(    id: String,     text: Message.Text?,     files: ArrayList<LocalFile>?,     handler: CompletionHandler<Message>)

Posts a message with optional file attachments to a person asynchronously. The content of the message can be plain text, html, or markdown.

Since

2.1.0

Parameters

id
  • The identifier of a person to which the message is to be posted.

text
  • The content of message to be posted to the person. The content can be plain text, html, or markdown.

files
  • Local files to be attached with the message. Null if no files to be attached.

handler
  • A closure to be executed once the message has posted.