Closed misterakko closed 1 month ago
Does this work for you? I think you have some arguments out of order, and the csv string changed to an array.
$answers = $catApi->searchCatalogItems(
marketplaceIds: [$amazon->prefs['amazon-MARKETPLACE_ID']],
identifiers: ['8804777427'],
includedData: ['salesRanks', 'identifiers', 'summaries']
);
You are right. And: I will, starting from now, start to explicitly state the name of the parameter for every API call, because many need a bazillion and it's way too simple to mix things (PHPStorms helps but does not solve the issue, at least in my case).
Thanks!
name: searchCatalogItems returns a 403 Forbidden response about: API call which worked under v5 of the library fails under v6.0.4 title: '' labels: '' assignees: ''
Problem description:
I am porting my code from v5 to v6 of the library, line by line. It's mostly boring work, and I found no issues worth of the name but this.
The snippet of code I'm pasting just looks for an item by EAN in the Amazon catalog. It works under v5. v5 code:
Error:
Code