FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

cfamazonproductad

v1.4.6 Public
        __                                                                    _               _              _ 
  ___  / _|  __ _  _ __ ___    __ _  ____ ___   _ __   _ __   _ __  ___    __| | _   _   ___ | |_  __ _   __| |
 / __|| |_  / _` || '_ ` _ \  / _` ||_  // _ \ | '_ \ | '_ \ | '__|/ _ \  / _` || | | | / __|| __|/ _` | / _` |
| (__ |  _|| (_| || | | | | || (_| | / /| (_) || | | || |_) || |  | (_) || (_| || |_| || (__ | |_| (_| || (_| |
 \___||_|   \__,_||_| |_| |_| \__,_|/___|\___/ |_| |_|| .__/ |_|   \___/  \__,_| \__,_| \___| \__|\__,_| \__,_|
                                                      |_|                                                      

cfamazonproductad

Amazon Product Advertising ColdFusion Rest API Client, new v5 API supported in amazonProductAd5.cfc

v5 has full api coverage of methods: GetBrowseNodes, GetItems, GetVariations, SearchItems, function takes the same arguments as the REST api in AWS documentation.

Case of arguments is important, Lucee supports preserving case, but this might be an issue with Adobe ColdFusion which doesn't support "cfprocessingdirective( preserveCase=true )".

Breaking change

The previous v4 API in amazonProductAd.cfc is no longer functional and has been removed.

To Install

Run the following from commandbox: box install cfamazonproductad

Example usage

<cfscript>
amz = new amazonProductAd5(
	accessKeyId= "XXXXYYYYYZZZZ"
,	secretAccessKey= "ABC123ABC123ABC123"
,	partnerTag= "abcdefg-20"
).usDefaults();
test= amz.SearchItems( "fred", "ItemInfo.Title" );
dump( test );
</cfscript>

Marketplace support

Australia Brazil Canada France Germany India Italy Japan Mexico Netherlands Singapore Spain Turkey United Arab Emirates United Kingdom United States

Changes

  • 2020-05-08 Removed v4 API which no longer works
  • 2020-04-10 Added support for Adobe ColdFusion 2018, ColdFusion 2016 & ColdFusion 11, thanks CommandBox!
  • 2020-03-23 Added support for all amazon regions/markets to v5. Breaking change to constructor arguments, replaced apiUrl with setEndPoint()
  • 2020-02-23 Complete rewrite to support new PAAPI v5
  • 2019-06-03 Open source release

Contributions

Thanks to Jeff Maciorowski for sponsoring adding/fixing foreign marketplace support in this api client.

API documentation

https://webservices.amazon.com/paapi5/documentation/ https://docs.aws.amazon.com/AWSECommerceService/latest/DG/Welcome.html

Dependencies (0)


Dev Dependencies (0)


 

$ box install cfamazonproductad

No collaborators yet.
   
  • Jun 03 2019 12:58 PM
  • Jul 02 2020 11:48 PM
  • 451
  • 0
  • 3