Module: Mercadolibre::Core::Bookmarks
- Included in:
- Api
- Defined in:
- lib/mercadolibre/core/bookmarks.rb
Instance Method Summary collapse
- #create_item_bookmark(item_id) ⇒ Object
- #delete_item_bookmark(item_id) ⇒ Object
- #get_my_bookmarks ⇒ Object
Instance Method Details
#create_item_bookmark(item_id) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/mercadolibre/core/bookmarks.rb', line 8 def create_item_bookmark(item_id) payload = { item_id: item_id }.to_json headers = { content_type: :json } post_request("/users/me/bookmarks?access_token=#{@access_token}", payload, headers).body end |
#delete_item_bookmark(item_id) ⇒ Object
16 17 18 |
# File 'lib/mercadolibre/core/bookmarks.rb', line 16 def delete_item_bookmark(item_id) delete_request("/users/me/bookmarks/#{item_id}?access_token=#{@access_token}").body end |
#get_my_bookmarks ⇒ Object
4 5 6 |
# File 'lib/mercadolibre/core/bookmarks.rb', line 4 def get_my_bookmarks get_request("/users/me/bookmarks", { access_token: @access_token }).body end |