i trying call magento soap api , list of orders within time period. can connect api , list of orders fine can't (for life of me) figure out how filter results... ideas? code return orders below...
$proxy = new soapclient('http://lalala.freelunchlabs.com/api/v2_soap/?wsdl'); // create authorized session id using api user name , api key $sessionid = $proxy->login('myusername', 'mypassword'); $filters = array( 'created_at' => array( '>' => '2011-04-21 02:13:00'), 'created_at' => array( '<' => '2011-04-21 02:22:00') ); // order list $orderinfo = $proxy->salesorderlist($sessionid,array($filters)); print_r($orderinfo);
thanks in advance!
chuck
i got no experience magento soap 2 api, if filters in v2 work same way v1, try this:
$filters = array( 'created_at' => array( 'from' => '2011-04-21 02:13:00', 'to' => '2011-04-21 02:22:00' ) );
Comments
Post a Comment