Class: Peddler::API::CatalogItems20201201
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::API::CatalogItems20201201
- Defined in:
- lib/peddler/api/catalog_items_2020_12_01.rb
Overview
Selling Partner API for Catalog Items
The Selling Partner API for Catalog Items provides programmatic access to information about items in the Amazon catalog. For more information, see the Catalog Items API Use Case Guide.
Instance Attribute Summary
Attributes inherited from Peddler::API
Instance Method Summary collapse
-
#get_catalog_item(asin, marketplace_ids, included_data: "summaries", locale: nil, rate_limit: 2.0) ⇒ Hash
Retrieves details for an item in the Amazon catalog.
-
#search_catalog_items(keywords, marketplace_ids, included_data: "summaries", brand_names: nil, classification_ids: nil, page_size: 10, page_token: nil, keywords_locale: nil, locale: nil, rate_limit: 2.0) ⇒ Hash
Search for and return a list of Amazon catalog items and associated information.
Methods inherited from Peddler::API
#cannot_sandbox!, #endpoint_uri, #http, #initialize, #meter, #must_sandbox!, #retriable, #sandbox, #sandbox?, #use, #via
Constructor Details
This class inherits a constructor from Peddler::API
Instance Method Details
#get_catalog_item(asin, marketplace_ids, included_data: "summaries", locale: nil, rate_limit: 2.0) ⇒ Hash
Note:
This operation can make a static sandbox call.
Retrieves details for an item in the Amazon catalog.
69 70 71 72 73 74 75 76 77 78 |
# File 'lib/peddler/api/catalog_items_2020_12_01.rb', line 69 def get_catalog_item(asin, marketplace_ids, included_data: "summaries", locale: nil, rate_limit: 2.0) path = "/catalog/2020-12-01/items/#{asin}" params = { "marketplaceIds" => marketplace_ids, "includedData" => included_data, "locale" => locale, }.compact meter(rate_limit).get(path, params:) end |
#search_catalog_items(keywords, marketplace_ids, included_data: "summaries", brand_names: nil, classification_ids: nil, page_size: 10, page_token: nil, keywords_locale: nil, locale: nil, rate_limit: 2.0) ⇒ Hash
Note:
This operation can make a static sandbox call.
Search for and return a list of Amazon catalog items and associated information.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/peddler/api/catalog_items_2020_12_01.rb', line 39 def search_catalog_items(keywords, marketplace_ids, included_data: "summaries", brand_names: nil, classification_ids: nil, page_size: 10, page_token: nil, keywords_locale: nil, locale: nil, rate_limit: 2.0) path = "/catalog/2020-12-01/items" params = { "keywords" => keywords, "marketplaceIds" => marketplace_ids, "includedData" => included_data, "brandNames" => brand_names, "classificationIds" => classification_ids, "pageSize" => page_size, "pageToken" => page_token, "keywordsLocale" => keywords_locale, "locale" => locale, }.compact meter(rate_limit).get(path, params:) end |