Python package for the BigCommerce API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bigcommerce
.gitignore
.travis.yml
LICENSE
README.md
setup.py

README.md

python-bigcommerce

Python for the BigCommerce API

NOTE This is still in development.

@TODO: Handle Nested rosources for Products and Orders Scope WebHooks API Add OPTIONS method

Installation: requires requests

$ pip install python-bigcommerce

Usage: You can initalize an instance with your authentication credentials or set them as environment variables.

from bigcommerce import BigCommerce
bc = BigCommerce('DOMAIN','USERNAME','API_KEY')

or

os.environ['BIGCOMMERCE_STORE_DOMAIN'] = ''
os.environ['BIGCOMMERCE_API_USERNAME'] = ''
os.environ['BIGCOMMERCE_API_KEY'] = ''
bc = BigCommerce()

You can access resources with similar methods depending on their availability in the API. {Resoure}.{all,filter,get,create,update,count,delete,delete_bulk}

bc.time.get()

result = bc.products.update("product_id", {
	'name' => 'Super Happy Funtime Product!'
})
>>> result.status_code
201
>>> result.body
{u'name': 'Super Happy Funtime Product!',...}

bc.customergroups.all()
bc.orders.filter({ 'limit': 10, 'page': page# })
bc.options.get(option_id=4)
bc.products.create(data={})
bc.orders.update(order_id='XXX', {})
bc.coupons.delete(coupon_id='XXX')
bc.coupons.delete_bulk(['A Collection of IDs','Or None to delete all'])