Created
September 25, 2013 17:36
-
-
Save LaurMo/6703154 to your computer and use it in GitHub Desktop.
Example of contacts call bak
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def contacts_callback | |
@contacts = request.env['omnicontacts.contacts'] | |
@user = request.env['omnicontacts.user'] | |
puts "List of contacts of #{user[:name]} obtained from #{params[:importer]}:" | |
@contacts.each do |contact| | |
puts "Contact found: name => #{contact[:name]}, email => #{contact[:email]}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment