Sha256: 295502e2562bef860c03abdae5a556fd8b55d145509569e522073b2ee29829ff
Contents?: true
Size: 1.99 KB
Versions: 1
Compression:
Stored size: 1.99 KB
Contents
module Foursquare class Venue < Node #Venues def add(params={}) params = {:name => "", :address => "", :crossStreet => "", :city=>"San Francisco", :state=>"California", :zip=>"94108", :phone=>"", :ll => "37.792694,-122.409325", :primaryCategoryId => "4bf58dd8d48988d1e1931735"}.merge!(params) perform_graph_request("venues/add", params, "post") end def categories perform_graph_request("venues/categories", {}) end def search(params={}) params = {:ll => "37.792694,-122.409325", :llAcc => "100", :alt => "0", :altAcc=>"100", :query=>"", :limit=>"50", :intent=>"checkin"}.merge!(params) perform_graph_request("venues/search", params) end #Aspects def herenow(venue_id) perform_graph_request("venues/#{venue_id}/herenow", {}) end #sort = recent or popular def tips(venue_id, params={:sort => "recent"}) perform_graph_request("venues/#{venue_id}/tips", {}) end #marktodo def marktodo(venue_id, params={}) params = {:text => ""}.merge!(params) perform_graph_request("venues/#{venue_id}/marktodo", params, "post") end def flag(venue_id, params={}) params = {:problem => "mislocated"}.merge!(params) perform_graph_request("venues/#{venue_id}/flag", params, "post") end def proposeedit(venue_id, params={}) params = {:name => "", :address => "", :crossStreet => "", :city=>"San Francisco", :state=>"California", :zip=>"94108", :phone=>"", :ll => "37.792694,-122.409325", :primaryCategoryId => "4bf58dd8d48988d1e1931735"}.merge!(params) perform_graph_request("venues/#{venue_id}/proposeedit", params, "post") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foursquare-api-0.0.2 | lib/venue.rb |