Method: Foursquare2::Lists#follow_list

Defined in:
lib/foursquare2/lists.rb

#follow_list(list_id, options = {}) ⇒ Object

Parameters:

  • list_id (String)
    • The id of the list to follow.

[View source]

37
38
39
40
41
42
# File 'lib/foursquare2/lists.rb', line 37

def follow_list(list_id, options={})
  response = connection.post do |req|
    req.url "lists/#{list_id}/follow", options
  end
  return_error_or_body(response, response.body.response.list)
end