Method: Foursquare2::Lists#delete_list_item

Defined in:
lib/foursquare2/lists.rb

#delete_list_item(list_id, item_id, options = {}) ⇒ Object

Parameters:

  • list_id (String)
    • The id of the list to delete item from

  • item_id (String)

    The id of the item to delete from list

[View source]

94
95
96
97
98
99
# File 'lib/foursquare2/lists.rb', line 94

def delete_list_item(list_id, item_id, options={})
  response = connection.post do |req|
    req.url "lists/#{list_id}/deleteitem", {:itemId => item_id}.merge(options)
  end
  return_error_or_body(response, response.body.response.item)
end