Skip to content

Instantly share code, notes, and snippets.

@centerax
Created January 9, 2013 13:48
Show Gist options
  • Save centerax/4493230 to your computer and use it in GitHub Desktop.
Save centerax/4493230 to your computer and use it in GitHub Desktop.
<?php
ini_set('display_errors', 1);
$client = new SoapClient('http://MAGENTO_URL/index.php/api/v2_soap/?wsdl');
$session = $client->login('USERNAME', 'PASSWORD');
$complexFilter = array(
'complex_filter' => array(
array(
'key' => 'entity_id',
'value' => array(
'key' => 'gteq',
'value' => 1
)
),
array(
'key' => 'product_id',
'value' => array(
'key' => 'lteq',
'value' => 3
)
)
)
);
$result = $client->catalogProductList($session, $complexFilter);
var_dump($result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment