Sha256: 082ae58ec4581efe5ced8fa96230746266211d75952d3fbce5361d43016292b4

Contents?: true

Size: 842 Bytes

Versions: 2

Compression:

Stored size: 842 Bytes

Contents

module Etsy4r
  class ShopCommands < Etsy4r::Commands
    
    def get_shop_details(user_id, optional_params = {})
      @client.process("/shops/#{user_id}", optional_params)
    end
    
    def get_featured_sellers(optional_params = {})
      @client.process("/shops/featured", optional_params)
    end
    
    def get_shop_listings(user_id, optional_params = {})
      @client.process("/shops/#{user_id}/listings", optional_params)
    end
    
    def get_shops_by_name(search_name, optional_params = {})
      search_name_param = search_name.gsub(" ", "_")
      @client.process("/shops/keywords/#{search_name_param}", optional_params)
    end
    
    def get_featured_details(user_id, optional_params = {})
      @client.process("/shops/#{user_id}/listings/featured", optional_params)
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tcocca-etsy4r-0.3.2 lib/etsy4r/shop_commands.rb
tcocca-etsy4r-0.4.0 lib/etsy4r/shop_commands.rb