Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.0

Request #10687 set array for SimilarityLookup
Submitted: 2007-04-11 04:40 UTC Modified: 2007-04-11 06:05 UTC
From: takuya1st Assigned: ttsuruoka
Status: Closed Package: Services_Amazon (version 0.7.0)
PHP Version: 5.1.6 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2007-04-11 04:40 UTC] takuya1st (Takuya Morioka)
Description: ------------ i read AmaoznECS Document , and find this sentence "Up to ten ASINs in a comma-separated list for REST requests or in multiple ItemId elements for SOAP requests." but in Services_Amazon, i cant set Array for SimilarityLookup method. can i set array of item_ids for Services_AmazonECS4::SimilarityLookup().

Comments

 [2007-04-11 04:59 UTC] takuya1st (Takuya Morioka)
i wrote patch function SimilarityLookup($item_id, $options = array()) { + if(is_array($item_id)){ + $item_id = implode(",", $item_id); + } $params = $options; $params['Operation'] = 'SimilarityLookup'; $params['ItemId'] = $item_id; return $this->_sendRequest($params); }
 [2007-04-11 06:05 UTC] ttsuruoka (Tatsuya Tsuruoka)
This has been fixed in CVS. diff to previous: http://cvs.php.net/viewvc.cgi/pear/Services_Amazon/AmazonECS4.php?r1=1.5&r2=1.6 Thanks!