GitHub - emartyacn/python-demandware-sdk: Python Demandware SDK provides access to the OCAPI services

Python Demandware SDK

Description

Python Demandware SDK provides access to the OCAPI services. https://documentation.demandware.com/display/DOC131/Open+Commerce+API

Installation

$ pip install https://github.com/weareconflict/python-demandware-sdk/tarball/master

Basic usage

from dw.client import Demandware

# Set a config file
DW_API = {
    'client_id': 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
    'hostname': 'changeme.demandware.net',
    'site': 'SiteGenesis',
    'version': 'v13_1',
}

# Instance a client
conn = Demandware(DW_API)

# Make an API call
product = conn.get_product('008884303989')
print product.name

Client ID

How to set client_id parameter

https://documentation.demandware.com/display/DOC133/Client+application+identification https://documentation.demandware.com/display/DOC133/Client+permissions

Contributors

Documentation