@@ -145,21 +145,21 @@ intercom.notes.find_all(:user_id => '123').each {|note| puts note.body}
145145``` ruby
146146# FINDING CONVERSATIONS FOR AN ADMIN
147147# Iterate over all conversations (open and closed) assigned to an admin
148- intercom.conversations.find_all(:type => ' admin' , :id => ' 7' ).each do {|convo | ... }
148+ intercom.conversations.find_all(:type => ' admin' , :id => ' 7' ).each {|convo | ... }
149149# Iterate over all open conversations assigned to an admin
150- intercom.conversations.find_all(:type => ' admin' , :id => 7 , :open => true ).each do {|convo | ... }
150+ intercom.conversations.find_all(:type => ' admin' , :id => 7 , :open => true ).each {|convo | ... }
151151# Iterate over closed conversations assigned to an admin
152- intercom.conversations.find_all(:type => ' admin' , :id => 7 , :open => false ).each do {|convo | ... }
152+ intercom.conversations.find_all(:type => ' admin' , :id => 7 , :open => false ).each {|convo | ... }
153153# Iterate over closed conversations for assigned an admin, before a certain moment in time
154- intercom.conversations.find_all(:type => ' admin' , :id => 7 , :open => false , :before => 1374844930 ).each do {|convo | ... }
154+ intercom.conversations.find_all(:type => ' admin' , :id => 7 , :open => false , :before => 1374844930 ).each {|convo | ... }
155155
156156# FINDING CONVERSATIONS FOR A USER
157157# Iterate over all conversations (read + unread, correct) with a user based on the users email
158- intercom.conversations.find_all(
:email =>
' [email protected] ' ,
:type =>
' user' ).each
do {|
convo | ... }
158+ intercom.conversations.find_all(
:email =>
' [email protected] ' ,
:type =>
' user' ).each {|
convo | ... }
159159# Iterate over through all conversations (read + unread) with a user based on the users email
160- intercom.conversations.find_all(
:email =>
' [email protected] ' ,
:type =>
' user' ,
:unread =>
false ).each
do {|
convo | ... }
160+ intercom.conversations.find_all(
:email =>
' [email protected] ' ,
:type =>
' user' ,
:unread =>
false ).each {|
convo | ... }
161161# Iterate over all unread conversations with a user based on the users email
162- intercom.conversations.find_all(
:email =>
' [email protected] ' ,
:type =>
' user' ,
:unread =>
true ).each
do {|
convo | ... }
162+ intercom.conversations.find_all(
:email =>
' [email protected] ' ,
:type =>
' user' ,
:unread =>
true ).each {|
convo | ... }
163163
164164# FINDING A SINGLE CONVERSATION
165165conversation = intercom.conversations.find(:id => ' 1' )
0 commit comments