This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| .. | |||
| |
amazon_associates_source.php | Thu Jul 31 09:33:10 -0700 2008 | |
| |
readme.textile | Thu Jul 31 09:36:18 -0700 2008 |
CakePHP Amazon Associates Data Source
A CakePHP datasource for interacting with the amazon associates API. You can do cool stuff like finding images for Movies, Books and other products with it and then earn commisions on referals via Amazon’s associate program.
If you don’t have an amazon API key you can get one here: Get Amazon API key
Usage / Docs
Installing
1. Copy amazon_associates_source.php to app/models/datasources/
2. Open your app/config/database.php and add the following:
var $amazon = array(
'datasource' => 'amazon_associates',
'key' => 'your-amazon-key'
);
3. Create app/controllers/amazon_controlle.php with the following code:
class AmazonController extends AppController{
var $uses = array();
function index() {
// Only needed if no Model has been loaded so far
App::import('ConnectionManager');
$amazon = ConnectionManager::getDataSource('amazon');
$response = $amazon->find('DVD', array('title' => 'The Devil and Daniel Johnston'));
debug($response);
exit;
}
}
4. Access the /amazon action of your app and look at the resultset.
5. Take a look at the available query options.
Missing Features
- Implement missing operations (fork contributions welcome!):
- BrowseNodeLookup
- CartAdd
- CartClear
- CartCreate
- CartGet
- CartModify
- CustomerContentLookup
- CustomerContentSearch
- Help
- ItemLookup
- ListLookup
- ListSearch
- SellerListingLookup
- SellerListingSearch
- SellerLookup
- SimilarityLookup
- TagLookup
- TransactionLookup
- Read associates tag from db config
- Possibly other things, see Amazon API documentation
Known Bugs
None











