Skip to content

Instantly share code, notes, and snippets.

@bkenny
Created March 1, 2012 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bkenny/1948574 to your computer and use it in GitHub Desktop.
Save bkenny/1948574 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
@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