magentouch

Magento Soup v2 suds client


Keywords
Python, Magento, Soup, Suds, API
License
GPL-2.0+
Install
pip install magentouch==1.0

Documentation

Following python code shows you how to
inititialize the Magentouch instance
and then call an Magento SOUPv2 api

Further api reference can be found here
http://www.magentocommerce.com/api/soap/introduction.html


from magentouch import Magentouch
from magentouch.utils import recursive_asdict

# e.g. url='http://shop.digirocks.com.au/api/v2_soap?wsdl=1'
url=''
username=''
password=''

mgt = Magentouch(url=url, username=username, password=password)
suds_ret = mgt.service.catalogCategoryTree(mgt.session)
categories = recursive_asdict(suds_ret)['children']
for c in categories:
    print c