Method: Foursquare2::Tips#add_tip

Defined in:
lib/foursquare2/tips.rb

#add_tip(options = {}) ⇒ Object

Add a tip

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):

  • String (Object)

    :venueId - Required, which venue to add the tip to.

  • String (Object)

    :text - The text of the tip.

  • String (Object)

    :url - Optionally associated url.



57
58
59
60
61
62
# File 'lib/foursquare2/tips.rb', line 57

def add_tip(options={})
  response = connection.post do |req|
    req.url "tips/add", options
  end
  return_error_or_body(response, response.body.response.tip)
end