Skip to content

Instantly share code, notes, and snippets.

@LaurMo
Created September 25, 2013 17:36
Show Gist options
  • Save LaurMo/6703154 to your computer and use it in GitHub Desktop.
Save LaurMo/6703154 to your computer and use it in GitHub Desktop.
Example of contacts call bak
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