@@ -175,8 +175,23 @@ conversation.conversation_parts[1].body
175175# REPLYING TO CONVERSATIONS
176176# User (identified by email) replies with a comment
177177intercom.conversations.reply(:id => conversation.id, :type => ' user' , :email => ' joe@example.com' , :message_type => ' comment' , :body => ' foo' )
178- # Admin (identified by email) replies with a comment
179- intercom.conversations.reply(:id => conversation.id, :type => ' admin' , :email => ' bob@example.com' , :message_type => ' comment' , :body => ' bar' )
178+ # Admin (identified by id) replies with a comment
179+ intercom.conversations.reply(:id => conversation.id, :type => ' admin' , :admin_id => ' 123' , :message_type => ' comment' , :body => ' bar' )
180+
181+ # Open
182+ intercom.conversations.open (id: conversation.id, admin_id: ' 123' )
183+
184+ # Close
185+ intercom.conversations.close(id: conversation.id, admin_id: ' 123' )
186+
187+ # Assign
188+ intercom.conversations.assign(id: conversation.id, admin_id: ' 123' , assignee_id: ' 124' )
189+
190+ # Reply and Open
191+ intercom.conversations.reply(:id => conversation.id, :type => ' admin' , :admin_id => ' 123' , :message_type => ' open' , :body => ' bar' )
192+
193+ # Reply and Close
194+ intercom.conversations.reply(:id => conversation.id, :type => ' admin' , :admin_id => ' 123' , :message_type => ' close' , :body => ' bar' )
180195
181196# ASSIGNING CONVERSATIONS TO ADMINS
182197intercom.conversations.reply(:id => conversation.id, :type => ' admin' , :assignee_id => assignee_admin.id, :admin_id => admin.id, :message_type => ' assignment' )
0 commit comments