Skip to content

Instantly share code, notes, and snippets.

@tonybyrne
Forked from bkenny/gist:1948574
Created March 1, 2012 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonybyrne/1949642 to your computer and use it in GitHub Desktop.
Save tonybyrne/1949642 to your computer and use it in GitHub Desktop.
def results
@venues = Hashie::Mash.new(client.search_venues(:ll => coords, :query => @venue))
# Checking the imagery
threads = []
@venues.groups.first.items.each do |check|
threads << image_check(check.id)
end
threads.each{|thread| thread.join}
@responses = threads.map(&:value)
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 {
HTTParty.get(arg)
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment