We have a script that runs when a store installs our application.
def install_script(store):
url = 'https://{0}:{1}@{2}.myshopify.com/admin/api/{3}/script_tags.json'.format(
settings.SHOPIFY_API_KEY, store.api_token, store.store_addr,
settings.SHOPIFY_API_VERSION
)
response = requests.post(
url, headers=settings.SHOPIFY_HEADERS, data=json.dumps(data)
)
This runs successfully and we get a 200, but our script is not included in the store’s website.