【文件属性】:
文件名称:python-magento:使用Python API访问magento API
文件大小:21KB
文件格式:ZIP
更新时间:2021-05-08 06:27:18
api magento Python
Magento Python API
用于连接到Magento Web服务的Python库。
用法
import magento
url = 'http://domain.com/'
apiuser = 'user'
apipass = 'password'
# Create an instance of API
client = magento . API ( url , apiuser , apipass )
# A filter expression as dictionary.
order_filter = { 'created_at' :{ 'from' : '2011-09-15 00:00:00' }}
products = client . product . list ( order_filter )
# Get a list of product types
prod
【文件预览】:
python-magento-develop
----MANIFEST.in(19B)
----README.rst(4KB)
----.github()
--------issue_template.md(156B)
--------pull_request_template.md(904B)
----doc()
--------pymag.rst(2KB)
----CREDITS(126B)
----.travis.yml(121B)
----LICENSE(2KB)
----magento()
--------utils.py(780B)
--------miscellaneous.py(1KB)
--------rest.py(563B)
--------__init__.py(1KB)
--------checkout.py(12KB)
--------catalog.py(27KB)
--------customer.py(4KB)
--------directory.py(772B)
--------version.py(146B)
--------api.py(8KB)
--------sales.py(13KB)
----setup.py(1KB)