You are here:  » Amazon’s Product Advertising API version 5.0


Amazon’s Product Advertising API version 5.0

Submitted by ucsrpnvn on Fri, 2020-06-12 23:02 in

Hi David,

hope you are well.

Could you please help me to convert my pto_api_amazon.php to new Amazon APIv5 working.

Thanks.
Pavan

Submitted by support on Sat, 2020-06-13 07:21

Hello Pavan,

I've updated the Amazon API module for version 5, click here to download.

There's a new config parameter - $pto_api_amazonRegion - set this together with $pto_api_amazonHost for your locale as required.

The access key and secret access key now need to be those from your Amazon Associates account (Tools > Product Advertising API) and may need to be migrated from AWS Console. Some users have reported the version 5 module not working immediately when this is required so may be worth waiting 24 hours if that appears to be the case. Debugging is built-in so if no results are showing you can enable debug mode by changing line 28 as follows;

  $pto_api_amazonDebug = TRUE;

The CURL error (if any) and raw JSON response from the API will then be displayed and is normally quite informative.

Cheers,
David.
--
PriceTapestry.com

Submitted by ucsrpnvn on Sat, 2020-06-13 12:56

Hi David,

It's perfectly working now. Thank you so much for your help.

Cheers,
Pavan