-
-
Save anonymous/74d824de176520593b91 to your computer and use it in GitHub Desktop.
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
require 'open-uri' | |
require 'json' | |
emails = IO.readlines("emails-group-1") | |
emails.each do |line| | |
line.chomp! | |
end | |
# print emails | |
payload = emails.map { |e| JSON.parse open("http://api.fullcontact.com/v2/person.json?email=#{e}&apiKey=XXXXXX").read }.to_json | |
File.write( 'stats.json', payload) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment