Method: Foursquare2::Lists#add_list

Defined in:
lib/foursquare2/lists.rb

#add_list(options = {}) ⇒ Object

Parameters:

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

Options Hash (options):

  • String (Object)

    :name - (required) The name of the list

  • String (Object)

    :description - The description of the list.

  • Boolean (Object)

    :collaborative - Boolean indicating if this list can be edited by friends.

  • String (Object)

    :photoId - The id of a photo that should be set as the list photo.


26
27
28
29
30
31
# File 'lib/foursquare2/lists.rb', line 26

def add_list(options={})
  response = connection.post do |req|
    req.url "lists/add", options
  end
    return_error_or_body(response, response.body.response.list)
end