Skip to content

Instantly share code, notes, and snippets.

@lperrin
Created December 19, 2014 13:04
Show Gist options
  • Save lperrin/65f010888524ecee84f9 to your computer and use it in GitHub Desktop.
Save lperrin/65f010888524ecee84f9 to your computer and use it in GitHub Desktop.
// Assign conversation to teammate identified by username
{type: 'assign', teammate: 'andre'}
// Unassign conversation
{type: 'unassign'}
// Toggle archive / open
{type: 'toggle_archived'}
// Toggle move to trash / undelete
{type: 'toggle_trashed'}
// Reply
// subject, send_now, mark_archived are optional
// if send_now is true, then the reply will be sent immediately, otherwise a reply will be opened with the body you provided.
// if mark_archived is true, (and send_now is true), the conversation will be archived after sending the reply.
{type: 'reply', body: 'A reply', subject: 'a subject', send_now: true, mark_archived: true}
// Reply all
{type: reply_all, body: 'A reply to everyone'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment