Function asa2_item_lookup
Retrieves an ASA2 item object that contains the values of an Amazon product. This function takes the ASA2 Repo into consideration. If the requested item is already in the Repo, it will be loaded from there instead of the Amazon API.
Example:
$item = asa2_item_lookup('B01M2AYHBV', array('country_code' => 'UK')); if (asa2_is_item_object($item)) { echo '<h3>' . $item->getTitle() . '</h3>'; }
Parameters summary
string |
$asin |
Amazon ASIN. |
array |
$options |
Optional. |
Return value summary
Asa2_Service_Amazon_Item_Wrapper_Abstract|null
|
Asa2_Service_Amazon_Item_Wrapper_Abstract|null |