Created
June 12, 2014 18:08
-
-
Save jeffdonthemic/48a60c01ddb93fccd374 to your computer and use it in GitHub Desktop.
Reads handles from a CSV and calls topcoder API for more user details
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 'csv' | |
require 'httparty' | |
CSV.foreach('/Users/jeff/Desktop/names.csv', :headers => false) do |row| | |
response = HTTParty.get("http://api.topcoder.com/v2/users/#{row.first}") | |
puts "#{response['handle']},#{response['country']}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment