How to add limit option in Magento API call.

Posted by ritesh on Stack Overflow See other posts from Stack Overflow or by ritesh
Published on 2010-04-29T08:22:50Z Indexed on 2010/04/29 8:27 UTC
Read the original article Hit count: 664

Filed under:

I am creating web service for my store. I am using magento API to collect product list from store. But it display all the 500 records. And i want it 25 records per page. What to add in API call? Or What filter will be apply for this?

//create soap object $proxy = new SoapClient('http://localhsot/magento/api/soap/?wsdl');

// create authorized session id using api user name and api key
// $sessionId = $proxy->login('apiUser', 'apiKey');
$sessionId = $proxy->login('test_admin', '12345678');

    $filters = array(


    );


 // Get list of product
$productlist = $proxy->call($sessionId, 'product.list', array($filters));

print_r($productlist ); 

© Stack Overflow or respective owner

Related posts about magento