Class: MuffinMan::CatalogItems::V20220401

Inherits:
BaseApi show all
Defined in:
lib/muffin_man/catalog_items/v20220401.rb

Constant Summary collapse

SEARCH_CATALOG_ITEMS_PARAMS =
%w(
  identifiersType
  sellerId
).freeze
API_VERSION =
"2022-04-01".freeze

Constants inherited from BaseApi

BaseApi::BASE_SEARCH_CATALOG_ITEMS_PARAMS, BaseApi::DEFAULT_IDENTIFERS_TYPE, BaseApi::GET_CATALOG_ITEM_PARAMS, BaseApi::SANDBOX_ASIN, BaseApi::SANDBOX_KEYWORDS, BaseApi::SANDBOX_MARKETPLACE_IDS

Constants inherited from SpApiClient

SpApiClient::ACCESS_TOKEN_URL, SpApiClient::AWS_REGION_MAP, SpApiClient::SERVICE_NAME, SpApiClient::UNPROCESSABLE_ENTITY_STATUS_CODE

Instance Attribute Summary

Attributes inherited from BaseApi

#asin, #keywords, #marketplace_ids, #params

Attributes inherited from SpApiClient

#access_token_cache_key, #aws_access_key_id, #aws_secret_access_key, #client_id, #client_secret, #config, #credentials, #local_var_path, #pii_data_elements, #query_params, #refresh_token, #region, #request_body, #request_type, #sandbox, #scope, #sts_iam_role_arn

Instance Method Summary collapse

Methods inherited from SpApiClient

#initialize

Constructor Details

This class inherits a constructor from MuffinMan::SpApiClient

Instance Method Details

#get_catalog_item(asin, marketplace_ids, params = {}) ⇒ Object



17
18
19
# File 'lib/muffin_man/catalog_items/v20220401.rb', line 17

def get_catalog_item(asin, marketplace_ids, params = {})
  super(asin, marketplace_ids, params, API_VERSION)
end

#search_catalog_items(marketplace_ids, params = {}) ⇒ Object



13
14
15
# File 'lib/muffin_man/catalog_items/v20220401.rb', line 13

def search_catalog_items(marketplace_ids, params = {})
  super(params["keywords"], marketplace_ids, params, API_VERSION)
end