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
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.
-
Liyakat thanks, But I need it in android please let me know how to achieve this one in android.– user26406Jun 15, 2015 at 5:08
-
-
I follwed this link . Its working great for "catalogProductList" api . But to filter products with proice and brands which api i need to use?– user26406Jun 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.– user26406Jul 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– liyakatJul 4, 2015 at 3:43