Magento Soup v2 Suds客户端
magentouch的Python项目详细描述
下面的python代码向您展示了如何
初始化magentouch实例
然后调用magento soupv2 api
可在此处找到进一步的API参考
http://www.magentocommerce.com/api/soap/introduction.html
<;前>;
从magentouch导入magentouch
从magentouch.utils导入递归
例如url='http://shop.digirocks.com.au/api/v2_皂?wsdl=1'
url=''
用户名=''
密码=''
mgt=magentouch(url=url,username=username,password=password)
suds_ret=mgt.service.catalogCategoryTree(管理会话)
categories=recursive_asdict(suds_ret)[“children”]
对于类别中的C:
打印C
<;前>;
初始化magentouch实例
然后调用magento soupv2 api
可在此处找到进一步的API参考
http://www.magentocommerce.com/api/soap/introduction.html
<;前>;
从magentouch导入magentouch
从magentouch.utils导入递归
例如url='http://shop.digirocks.com.au/api/v2_皂?wsdl=1'
url=''
用户名=''
密码=''
mgt=magentouch(url=url,username=username,password=password)
suds_ret=mgt.service.catalogCategoryTree(管理会话)
categories=recursive_asdict(suds_ret)[“children”]
对于类别中的C:
打印C
<;前>;