Created
March 24, 2012 02:29
-
-
Save hiraq/2177663 to your computer and use it in GitHub Desktop.
How to use - Search Operation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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