Class: Peddler::APIs::CatalogItemsV0
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::APIs::CatalogItemsV0
- Defined in:
- lib/peddler/apis/catalog_items_v0.rb
Overview
Selling Partner API for Catalog Items
The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog.
Instance Attribute Summary
Attributes inherited from Peddler::API
#access_token, #endpoint, #parser, #retries
Instance Method Summary collapse
-
#list_catalog_categories(marketplace_id, asin: nil, seller_sku: nil, rate_limit: 1.0) ⇒ Peddler::Response
Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU.
Methods inherited from Peddler::API
#endpoint_uri, #http, #initialize, #meter, #retriable, #sandbox, #sandbox?, #use, #via
Constructor Details
This class inherits a constructor from Peddler::API
Instance Method Details
#list_catalog_categories(marketplace_id, asin: nil, seller_sku: nil, rate_limit: 1.0) ⇒ Peddler::Response
Note:
This operation can make a static sandbox call.
Returns the parent categories to which an item belongs, based on the specified ASIN or SellerSKU.
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/peddler/apis/catalog_items_v0.rb', line 27 def list_catalog_categories(marketplace_id, asin: nil, seller_sku: nil, rate_limit: 1.0) path = "/catalog/v0/categories" params = { "MarketplaceId" => marketplace_id, "ASIN" => asin, "SellerSKU" => seller_sku, }.compact meter(rate_limit).get(path, params:) end |