Shopify is an e-commerce platform for online stores. This Parsons integration with the Shopify REST API supports fetching records of orders.
Shopify supports different types of authentication methods for different types of apps, which are documented here.
To instantiate the Shopify class, you can either store your Shopify API subdomain, password, key, and version as environmental variables (
SHOPIFY_API_VERSION, respectively) or pass in your subdomain, password, key, and version as arguments:
from parsons import Shopify # First approach: Use API credentials via environmental variables shopify = Shopify() # Second approach: Pass API credentials as arguments shopify = Shopify(subdomain='mysubdomain', password='1234', api_key='1234', api_version='2020-10')
You can then call various endpoints:
# Fetch orders orders = shopify.get_orders()