This wrapper lets you talk to Magento via SOAP. This is the most reliable and up to date magento wrapper, with lots of bug fixes.
Original wrapper: bitbucket.org/icecom/magentoapi , developed by https://www.npmjs.com/~icecom and https://www.npmjs.com/~2ps.
This copy exists so I can rapidly fix any bugs I run into.
npm install git+ssh://git@github.com/wolakec/magento-api-xmlrpc.git
var MagentoAPI = require('magento-api');
var magento = new MagentoAPI({
host: 'your.host',
port: 80,
path: '/api/xmlrpc/',
login: 'your_username',
pass: 'your_pass'
});
magento.login(function(err, sessId) {
if (err) {
// deal with error
return;
}
// use magento
});
If need be, you can manually change the session id.
magento.changeSession(newSessionId);
All of the API methods take an object of params as the first argument, and a callback as the second.
Or, if no params are sent, just a callback as the first argument.
- Catalog Category
- Catalog Category Attribute
- Catalog Product
- Catalog Product Attribute
- Catalog Product Attribute Media
- Catalog Product Attribute Set
- Catalog Product Custom Option
- Catalog Product Custom Option Value
- Catalog Product Downloadable Link
- Catalog Product Link
- Catalog Product Tag
- Catalog Product Tier Price
- Catalog Product Type
- Catalog Inventory Stock Item
- Checkout Cart
- Checkout Cart Coupon
- Checkout Cart Customer
- Checkout Cart Payment
- Checkout Cart Product
- Checkout Cart Shipping
- Core
- Customer
- Customer Address
- Customer Group
- Directory Country
- Directory Region
- Sales Order
- Sales Order Credit Memo
- Sales Order Invoice
- Sales Order Shipment
- Store