You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are "asin" and "kwargs" parameters in the arguments.
Args:
asin: string | * REQUIRED The Amazon Standard Identification Number (ASIN) of the item.
key marketplaceIds: array | * REQUIRED A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces.
:
:
Set the list in "marketplaceIds: array" in dictionary format in "kwargs".
List because I want to get #US and CA
MarketplaceParamList = [
Marketplaces.US.marketplace_id
Marketplaces.CA.marketplace_id,
}
**Add to dictionary
prmDict = dict (
marketplaceIds = MarketplaceParamList,
)
**Call API
res = catalogItems_obj.get_catalog_item (
asin =''B0xxxxxx',
kwargs = prmDict
)
`
result
CA cannot be obtained (US only)
I want to get both US and CA, but I can only get US.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
HI.
Marketplaces.US.marketplace_id
CatalogItems
def get_catalog_item (self, asin, ** kwargs)
There are "asin" and "kwargs" parameters in the arguments.
Args:
asin: string | * REQUIRED The Amazon Standard Identification Number (ASIN) of the item.
key marketplaceIds: array | * REQUIRED A comma-delimited list of Amazon marketplace identifiers. Data sets in the response contain data only for the specified marketplaces.
:
:
Set the list in "marketplaceIds: array" in dictionary format in "kwargs".
`
**Instance is generated in US
catalogItems_obj = CatalogItems (
marketplace = Marketplaces.US,
credentials = credentials,
)
**Credentials ('refresh_token') >>> US refresh_token
List because I want to get #US and CA
MarketplaceParamList = [
Marketplaces.US.marketplace_id
Marketplaces.CA.marketplace_id,
}
**Add to dictionary
prmDict = dict (
marketplaceIds = MarketplaceParamList,
)
**Call API
res = catalogItems_obj.get_catalog_item (
asin =''B0xxxxxx',
kwargs = prmDict
)
`
result
I want to get both US and CA, but I can only get US.
What should I do with this?
Beta Was this translation helpful? Give feedback.
All reactions