Skip to content

Commit

Permalink
Merge pull request #98 from intercom/BL/opens
Browse files Browse the repository at this point in the history
Document opening/closing conversations
  • Loading branch information
bobjflong committed Jul 28, 2015
2 parents f3f3b9c + fc6513e commit 8351ae6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,20 @@ $intercom->replyToConversation(array(
"message_type" => "assignment",
"assignee_id" => "2"
));
// Admin (identified by id) opens a conversation
$intercom->replyToConversation(array(
"id" => $conversation["id"],
"type" => "admin",
"admin_id" => "1",
"message_type" => "open",
));
// Admin (identified by id) closes a conversation
$intercom->replyToConversation(array(
"id" => $conversation["id"],
"type" => "admin",
"admin_id" => "1",
"message_type" => "close",
));


// MARKING A CONVERSATION AS READ
Expand Down

0 comments on commit 8351ae6

Please sign in to comment.