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 09:40 UTC
From: takuya1st Assigned: ttsuruoka
Status: Closed Package: Services_Amazon (version 0.7.0)
PHP Version: 5.1.6 OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 12 + 1 = ?

 
 [2007-04-11 09: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 09: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 11: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!