Sha256: 9754069dbdc06b729b539fbbacad3c298b5c1f1b9799b7902621a2bce854511d
Contents?: true
Size: 852 Bytes
Versions: 3
Compression:
Stored size: 852 Bytes
Contents
module Foursquare class Tips < Foursquare::Node #General def add(params={}) params = {:venueId => "", :text => "", :url => ""}.merge!(params) perform_graph_request("tips/add", params, "post") end def search(params={}) params = {:ll => "37.792694,-122.409325", :limit => "100", :offset => "0", :filter => "", :query => ""}.merge!(params) perform_graph_request("tips/search", params) end #Actions def marktodo(tip_id) perform_graph_request("tips/#{tip_id}/marktodo", {}, "post") end def markdone(tip_id) perform_graph_request("tips/#{tip_id}/markdone", {}, "post") end def unmark(tip_id) perform_graph_request("tips/#{tip_id}/unmark", {}, "post") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
foursquare-api-0.0.5 | lib/foursquare_tips.rb |
foursquare-api-0.0.4 | lib/foursquare_tips.rb |
foursquare-api-0.0.3 | lib/foursquare_tips.rb |