Class: Peddler::APIs::CatalogItems20201201
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::APIs::CatalogItems20201201
- Defined in:
- lib/peddler/apis/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 href="https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2020-12-01-use-case-guide">https://developer-docs.amazon.com/sp-api/docs/catalog-items-api-v2020-12-01-use-case-guide Catalog Items API Use Case Guide.
Instance Attribute Summary
Attributes inherited from Peddler::API
#access_token, #endpoint, #parser
Instance Method Summary collapse
-
#get_catalog_item(asin, marketplace_ids, included_data: "summaries", locale: nil, rate_limit: 2.0) ⇒ Peddler::Response
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) ⇒ Peddler::Response
Search for and return a list of Amazon catalog items and associated information.
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
#get_catalog_item(asin, marketplace_ids, included_data: "summaries", locale: nil, rate_limit: 2.0) ⇒ Peddler::Response
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/apis/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) ⇒ Peddler::Response
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/apis/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 |