Function asa2_item_search
Performs the Amazon API operation ItemSearch.
Example:
$coffeeMakers = asa2_item_search('coffee makers'); foreach ($coffeeMakers as $coffeeMaker) { if ($coffeeMaker instanceof Asa2_Service_Amazon_Item_Wrapper_Abstract) { echo '<h3>' . $coffeeMaker->getTitle() . '</h3>'; } }
Parameters summary
string |
$search |
The search string. |
array |
$options = array() |
Optional. Search parameters. |
string |
$return = 'resultset' |
Optional. Defines the return type. "response" returns an "Asa2_Service_Amazon_Response" object. Default is "resultset" which returns an "Asa2_Service_Amazon_Item_ResultSet" object which implements the SeekableIterator interface. |
Return value summary
Asa2_Service_Amazon_Item_ResultSet|Asa2_Service_Amazon_Response|null
|
The defined return type object or null on error. |