Skip to content

Commit 8351ae6

Browse files
committed
Merge pull request #98 from intercom/BL/opens
Document opening/closing conversations
2 parents f3f3b9c + fc6513e commit 8351ae6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,20 @@ $intercom->replyToConversation(array(
339339
"message_type" => "assignment",
340340
"assignee_id" => "2"
341341
));
342+
// Admin (identified by id) opens a conversation
343+
$intercom->replyToConversation(array(
344+
"id" => $conversation["id"],
345+
"type" => "admin",
346+
"admin_id" => "1",
347+
"message_type" => "open",
348+
));
349+
// Admin (identified by id) closes a conversation
350+
$intercom->replyToConversation(array(
351+
"id" => $conversation["id"],
352+
"type" => "admin",
353+
"admin_id" => "1",
354+
"message_type" => "close",
355+
));
342356

343357

344358
// MARKING A CONVERSATION AS READ

0 commit comments

Comments
 (0)