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, #retries
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?, #typed, #typed?, #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.
73 74 75 76 77 78 79 80 81 82 |
# File 'lib/peddler/apis/catalog_items_2020_12_01.rb', line 73 def get_catalog_item(asin, marketplace_ids, included_data: "summaries", locale: nil, rate_limit: 2.0) path = "/catalog/2020-12-01/items/#{percent_encode(asin)}" params = { "marketplaceIds" => stringify_array(marketplace_ids), "includedData" => stringify_array(included_data), "locale" => locale, }.compact parser = Peddler::Types::CatalogItems20201201::Item if typed? meter(rate_limit).get(path, params:, parser:) 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.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/peddler/apis/catalog_items_2020_12_01.rb', line 43 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" => stringify_array(keywords), "marketplaceIds" => stringify_array(marketplace_ids), "includedData" => stringify_array(included_data), "brandNames" => stringify_array(brand_names), "classificationIds" => stringify_array(classification_ids), "pageSize" => page_size, "pageToken" => page_token, "keywordsLocale" => keywords_locale, "locale" => locale, }.compact parser = Peddler::Types::CatalogItems20201201::ItemSearchResults if typed? meter(rate_limit).get(path, params:, parser:) end |