2

HI is there any way to get the products with filters like filter by price, filter by brand names etc in android? . I wanted to use "catalogProductList" magento api. Is that right one ? or I need to use any other api? If "catalogProductList" this one is the right api then how to send "filters" to this api? please let me know any reference is available for android.

1 Answer 1

1

you can try with filter parameter as below

“//Sample Code For Soap Client 
$client = new SoapClient(‘http://yourdomain.com/api/?wsdl’); 
// login     
try { 
    $session = $client->login(‘your_api_username’, ‘your_api_key’); 
    $filters = array( array(‘sku’ => array(‘like’=>’test%’),’name’=>array(‘eq’=>’Test’)) ); 
    $message=$client->call($session,’catalog.product.list’,$filters); print_r($message); 
} catch(Exception $fault) { 
  echo $fault->getMessage();
}”

hope this will worth for you.

5
  • Liyakat thanks, But I need it in android please let me know how to achieve this one in android.
    – user26406
    Jun 15, 2015 at 5:08
  • you may refer this stackoverflow.com/questions/11682462/…
    – liyakat
    Jun 15, 2015 at 5:10
  • I follwed this link . Its working great for "catalogProductList" api . But to filter products with proice and brands which api i need to use?
    – user26406
    Jun 15, 2015 at 7:07
  • liyakat could you please post the wsdl, api.xml file or any reference for creating configuration files for your code? Thanks in advance.
    – user26406
    Jul 3, 2015 at 13:38
  • if my answer is little help to you.i would be happy if u accept it and vote up so some one can use in future. you can refere this link inchoo.net/magento/magento-v2-soap-demystified
    – liyakat
    Jul 4, 2015 at 3:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.