Magento Core API Client
Project description
Python library to connect to Magento Webservices.
Check documentation source code
Usage
import magento
url = 'http://domain.com/'
apiuser = 'user'
apipass = 'password'
with magento.Product(url, apiuser, apipass) as product_api:
order_filter = {'created_at':{'from':'2011-09-15 00:00:00'}}
products = product_api.list(order_filter)
with magento.ProductTypes(url, apiuser, apipass) as product_type_api:
product_type = product_type_api.list()
with magento.Product(url, apiuser, apipass) as product_api:
sku = 'prod1'
product = product_api.info(sku)
with magento.API(url, apiuser, apipass) as magento_api:
# Calling custom APIs if you have extension modules on your
# magento installation
websites = magento_api.call('ol_websites.list', [])
store_group = magento_api.call('ol_groups.list', [])
store_views = magento_api.call('ol_storeviews.list', [])
with magento.Order(url, apiuser, apipass) as order_api:
order_increment_id = '100000001 '
status = 'canceled'
order_api.addcomment(order_increment_id, status)
with magento.Store(url, apiuser, apipass) as store_api:
store_id = '1'
store_view_info = store_api.info(store_id)
store_views = store_api.list()
with magento.Magento(url, apiuser, apipass) as magento_api:
magento_info = magento_api.info()
License
GNU Affero General Public License version 3
See LICENSE for more details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
magento-1.0.tar.gz
(13.3 kB
view details)
File details
Details for the file magento-1.0.tar.gz.
File metadata
- Download URL: magento-1.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f637f7044c7a96e91abb4354cf755a9d9e59adb97c3dab682c3d4d089f821d83
|
|
| MD5 |
39f56a03a2b094b6e220978ddf9e4737
|
|
| BLAKE2b-256 |
1bbce0131cd4ea7b0c231f519611ffaa3f15ae6f09acc745fbb17f1d8f4ace56
|