-
- Ben James

-
Total Posts: 14
Joined: 2008-10-01
|
I’ve spent the last hour trying to do something similar, and have finally got it working. I’m using perl with Frontier::RPC, but you should be able to translate it across into whatever you’re using:
my $server = Frontier::Client->new( url => "http://magentourl/api/xmlrpc/", debug => 1 );
my $sessionID = $server->call("login", ("username", "apikey"));
my $result = $server->call("call", ($sessionID, "sales_order.list", [ { updated_at => { from => "2008-10-05 12:49:51" } } ]));
I’m using the last update time, but you should be able to use created_at to to the same thing.
The ‘from’ parameter will only work with datetime datatypes (along with the ‘to’ parameter), but here are the rest of the types you can pass in (I had to dig into the Varien DB library to find them):
eq, neq, like, nlike, in, nin, is, null, notnull, moreq, gt, lt, gteq, lteq, finset
Hope that helps somebody who was looking for the same things as myself.
|