class Etsy::FavoriteListing
Public Class Methods
create(user, listing, options = {})
click to toggle source
Create a new favorite listing
# File lib/etsy/favorite_listing.rb, line 9 def self.create(user, listing, options = {}) options.merge!(:require_secure => true) post("/users/#{user.id}/favorites/listings/#{listing.id}", options) end
find_all_listings_favored_by(listing_id, options = {})
click to toggle source
Find a set of favorelistings associated with a listing_id
# File lib/etsy/favorite_listing.rb, line 22 def self.find_all_listings_favored_by(listing_id, options = {}) get_all("/listings/#{listing_id}/favored-by", options) end
find_all_user_favorite_listings(user_id, options = {})
click to toggle source
Find all listings favorited by a user
# File lib/etsy/favorite_listing.rb, line 16 def self.find_all_user_favorite_listings(user_id, options = {}) get_all("/users/#{user_id}/favorites/listings", options) end