Class: Foursquare::Tips

Inherits:
Node
  • Object
show all
Defined in:
lib/foursquare_tips.rb

Instance Method Summary collapse

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
# File 'lib/foursquare_tips.rb', line 4

def add(params={})
  params = {:venueId => "",
            :text => "",
            :url => ""}.merge!(params)

  perform_graph_request("tips/add", params, "post")
end

#markdone(tip_id) ⇒ Object



27
28
29
# File 'lib/foursquare_tips.rb', line 27

def markdone(tip_id)
  perform_graph_request("tips/#{tip_id}/markdone", {}, "post")
end

#marktodo(tip_id) ⇒ Object

Actions



23
24
25
# File 'lib/foursquare_tips.rb', line 23

def marktodo(tip_id)
  perform_graph_request("tips/#{tip_id}/marktodo", {}, "post")
end

#search(params = {}) ⇒ Object



12
13
14
15
16
17
18
19
20
# File 'lib/foursquare_tips.rb', line 12

def search(params={})
  params = {:ll => "37.792694,-122.409325",
            :limit => "100",
            :offset => "0",
            :filter => "",
            :query => ""}.merge!(params)

  perform_graph_request("tips/search", params)
end

#unmark(tip_id) ⇒ Object



31
32
33
# File 'lib/foursquare_tips.rb', line 31

def unmark(tip_id)
  perform_graph_request("tips/#{tip_id}/unmark", {}, "post")
end