Created
March 1, 2012 09:39
-
-
Save bkenny/1948574 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
def results | |
@venues = Hashie::Mash.new(client.search_venues(:ll => coords, :query => @venue)) | |
# Checking the imagery | |
@venues.groups.first.items.each do |check| | |
@threads = [] | |
@threads << image_check(check.id) | |
end | |
end | |
# Working progress. | |
def image_check(fs) | |
@image_venues | |
arg = "https://api.instagram.com/v1/locations/search?foursquare_v2_id=" + fs + "&access_token=" + session[:access_token] | |
Thread.new { | |
resp = HTTParty.get(arg) | |
puts resp | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment