Method: Foursquare2::Lists#update_list

Defined in:
lib/foursquare2/lists.rb

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

Parameters:

  • list_id (String)
    • The id of the list to update

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

Options Hash (options):

  • String (Object)

    :name - 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.

[View source]

64
65
66
67
68
69
# File 'lib/foursquare2/lists.rb', line 64

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