This module is an implementation of the "smalot/magento-client" project hosted on GitHub.
That's the best way to communicate with Magento against its Soap v1 API.
This module can be used to build products import, orders reportings, "Key Performance Indicators" dashboards, customer account synchronization and so more ...
Requirements
You need at least to use PHP 5.3 due to "namespace" use on API classes.
Setup
// Add this at the end of the "settings.php" file.
$conf['magento_providers'] = array(
'default' => array(
'name' => 'Magento Demo',
'url' => 'http://yourdomain.tld/magento/',
'api_user' => 'demo',
'api_key' => 'magento',
),
);
Implementation
// Create remote adapter which wrap soapclient.
$provider = magento_api_provider_get('default');
// Test connectivity.
if ($result = $provider->ping()) {
// Prepare single call.
$categoryManager = new \Smalot\Magento\Catalog\Category($provider);
$tree = $categoryManager->getTree()->execute();
var_dump($tree);
}
For more information about library, please refers to official documentation.
Credits
Original idea & sponsoring : Actualys
Supporting organizations:
Project information
- Module categories: Developer Tools, E-commerce, Import and Export
- 3 sites report using this module
- Created by Sebastien M. on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
7.x-1.0
released 2 May 2014
Works with Drupal: 7.x
✓ Recommended by the project’s maintainer.
Development version: 7.x-1.x-dev updated 10 May 2014 at 20:43 UTC