Class: Foursquare::Checkins
Instance Method Summary collapse
-
#add(params = {}) ⇒ Object
General.
-
#addcomment(checkin_id, params = {}) ⇒ Object
Actions.
- #deletecomment(checkin_id, params = {}) ⇒ Object
- #recent(params = {}) ⇒ Object
Methods inherited from Node
#initialize, #perform_graph_request
Constructor Details
This class inherits a constructor from Foursquare::Node
Instance Method Details
#add(params = {}) ⇒ Object
General
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/foursquare_checkins.rb', line 4 def add(params={}) params = {:venueId => "", :venue => "", :shout => "", :broadcast => "public", :ll => "37.792694,-122.409325", :llAcc => "100", :alt => "0", :altAcc => "100"}.merge!(params) perform_graph_request("checkins/add", params, "post") end |
#addcomment(checkin_id, params = {}) ⇒ Object
Actions
27 28 29 30 31 32 |
# File 'lib/foursquare_checkins.rb', line 27 def addcomment(checkin_id, params={}) params = {:ll => "37.792694,-122.409325", #for returning each venue's distance from ;; :text => "100"}.merge!(params) perform_graph_request("checkins/#{checkin_id}/addcomment", params, "post") end |
#deletecomment(checkin_id, params = {}) ⇒ Object
34 35 36 37 38 |
# File 'lib/foursquare_checkins.rb', line 34 def deletecomment(checkin_id, params={}) params = {:commentId => ""}.merge!(params) perform_graph_request("checkins/#{checkin_id}/deletecomment", params, "post") end |
#recent(params = {}) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/foursquare_checkins.rb', line 17 def recent(params={}) params = {:ll => "37.792694,-122.409325", #for returning each venue's distance from ll :limit => "100", :offset => "0", :afterTimestampAcc => ""}.merge!(params) perform_graph_request("checkins/recent", params) end |