bigcommerce / bigcommerce-api-python

Python client library for Bigcommerce API
https://pypi.python.org/pypi/bigcommerce
MIT License
91 stars 82 forks source link

Add settings/analytics endpoint #81

Closed bookernath closed 5 years ago

bookernath commented 5 years ago

What?

Add the analytics settings endpoint, which allows you to get the Google Analytics and Facebook Pixel IDs as well as set them.

Example usage:

api = bigcommerce.api.BigcommerceApi(client_id='', store_hash='', access_token='')
api.AnalyticsSettings.all()
google_analytics = api.AnalyticsSettings.get(1)
google_analytics.update(code="UA-1234567")
xcasahugabra commented 4 years ago

is the analytics settings an open endpoint?