Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mpchadwick/54e878ef8a4c53f7c7d8 to your computer and use it in GitHub Desktop.
Save mpchadwick/54e878ef8a4c53f7c7d8 to your computer and use it in GitHub Desktop.
Magento Catalog Product List API First 1000 Products
<?php
$client = new SoapClient('https://example.com/api/v2_soap?wsdl');
$session = $client->login('my_user_name', 'my_password');
$result = $client->catalogProductList($session, array(
'complex_filter' => array(
array(
'key' => 'product_id',
'value' => array('key' => 'from', 'value' => '1')
),
array(
'key' => 'product_id',
'value' => array('key' => 'to', 'value' => '1000')
)
)
));
var_dump($result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment