CakePHP Amazon eCommerce datasource Copyright 2009, Ministry of Web Development, http://www.cake-toppings.com This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library. If not, see <http://www.gnu.org/licenses/>. --------------------------------------------------------------------- Requirements : - PHP5 - Cakephp 1.2 - Amazon free AWS account: http://aws.amazon.com/ Usage : Copy the amazon_ecommerce_source.php file to your app/models/datasources/ directory Add a configuration to your database.php in app/config/ var $amazon_ecommerce = array( 'datasource' => 'amazon_ecommerce', 'accessKey' => '****' // accesskey of your amazon account 'secretKey' => '*****' // secretKey of your amazon account ); Then in your model set: var $useDbConfig = 'amazon_ecommerce'; var $useTable = false; And you're ready to go. In your controller you can now use $this->Model->query('all', array('type'=>'Music', 'keywords' => 'Rick Astley')); or $this->Model->query(array('type'=>'Music', 'keywords' => 'Rick Astley')); or $this->Model->query(array('keywords' => 'Rick Astley')); //it will do a search for all product types with 'Rick Astley' as a keyword or $this->Model->query('Rick Astley'); //it will do a search for all product types with 'Rick Astley' as a keyword Though all 4 work, it is recommended to stick to the first way of fetching your data. More info: https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html http://docs.amazonwebservices.com/AWSECommerceService/2010-10-01/DG/ Method and Operations mapping available at the moment: first = ItemLookup all = ItemSearch See all available command for Amazon eCommerce API here: http://docs.amazonwebservices.com/AWSECommerceService/2010-10-01/DG/index.html?CHAP_OperationListAlphabetical.html