Skip to content

Instantly share code, notes, and snippets.

@hiraq
Created March 24, 2012 02:29
Show Gist options
  • Save hiraq/2177663 to your computer and use it in GitHub Desktop.
Save hiraq/2177663 to your computer and use it in GitHub Desktop.
How to use - Search Operation
<?php
/*
* set operations
*/
$amazon->request()->search('php');
$amazon->request()->setParams(array(
'SearchIndex' => 'Books',
'ResponseGroup' => 'Large'
));
//get response data from sended request
$amazon->response()->proceed($amazon->request()->send());
//debug function is my custom function to 'print_r' any variables, you can use your own function.
//getItems will return all items data from amazon response
debug($amazon->response()->getItems());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment