@@ -175,20 +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 =>
' [email protected] ' ,
:message_type =>
' comment' ,
:body =>
' foo' )
178- # Admin (identified by email ) replies with a comment
179- intercom.conversations.reply(
:id => conversation.id,
:type =>
' admin' ,
:email =>
' [email protected] ' ,
: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' )
180180
181- # Reply and Open
182- intercom.conversations.
reply_and_open( :id => conversation.id,
:type => ' admin ' , :email => ' [email protected] ' , :message_type => ' note ' , :body => ' foo ' )
181+ # Open
182+ intercom.conversations.open ( id: conversation.id, admin_id: ' 123 ' )
183183
184- # Reply and Close
185- intercom.conversations.
reply_and_close( :id => conversation.id,
:type => ' admin ' , :email => ' [email protected] ' , :message_type => ' note ' , :body => ' foo ' )
184+ # Close
185+ intercom.conversations.close( id: conversation.id, admin_id: ' 123 ' )
186186
187- # Reply and Assign
188- intercom.conversations.
reply_and_assign({ :id => conversation.id,
:type => ' admin ' ,
:email => ' [email protected] ' , :message_type => ' note ' , :body => ' foo ' }, assignee_id: admin.id )
187+ # Assign
188+ intercom.conversations.assign( id: conversation.id, admin_id: ' 123 ' , assignee_id: ' 124 ' )
189189
190- # Assign without reply
191- intercom.conversations.assign({:id => conversation.id }, assignee_id: admin.id)
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' )
192195
193196# MARKING A CONVERSATION AS READ
194197intercom.conversations.mark_read(conversation.id)
0 commit comments