Reputation: 41
I'm developing a Shopify app. On app installation, I want to create a snippet and upload some assets like images and JS. That snippet should be injected in the product.liquid file.
Upvotes: 0
Views: 1370
Reputation: 350
You can use this for creating assets using API
https://docs.shopify.com/api/asset
While passing the key parameter you can pass whether it is going to be a snippet or asset.
{ "key" : "assets/bg-body-green.gif" }
Upvotes: 1