skip to Main Content

Shopify API upload a local image via python

import shopify from base64 import b64encode #omitted the shopify key shopify.ShopifyResource.set_site(shop_url) path = "product.jpg" new_product = shopify.Product() new_product.title = "title" new_product.body_html = "This is a test" image = shopify.Image() with open(path, "rb") as f: filename = path.split("/")[-1:][0] #encoded = b64encode(f.read())…

VIEW QUESTION

Working with Shopify API

Is is possible to create a customer in Shopify via their API? To elaborate, I want to use Shopify to manage my customers and orders and so on. But my website registration page, for a particular reason, isn't on Shopify…

VIEW QUESTION

shopify_auth multi store session handling

I am using Django with the shopify_auth package to connect with Shopify. Does anyone have any examples of how to handle multi store sessions/connections? So far, I am thinking of modifying shopify_auth's @login_required decorator with the following, but am unsure…

VIEW QUESTION
Back To Top
Search