Development discussions around Shopify APIs
Hello,
I am able to get the logo URL from Assets API. however it is in format" shopify://shop_images/test_shopify_logo.png"
How do I reference it to cdn to get the accessible image URL.
Hey there,
What exactly is the API call that you're making?
Our Assets API returns the `public_url` for each asset associated with the theme. You would just have to make a GET request as described in the docs:
GET /admin/api/2019-04/themes/#{theme_id}/assets.json
Let me know if that ends up providing you with the CDN URLs you're looking for!
Quick question regarding this topic,
There seems to be a method from this thread,
However I still can't get the public url.
/admin/api/2019-04/themes/#{theme_id}/assets.json
also does not seem to have the logo listed.
I have the exact same problem as the OP and see this is marked as the correct answer, but really you did not answer OP's question.
The first step works, retreiving the following URL
GET https://<STORE_NAME>.myshopify.com/admin/themes/<THEME_ID>/assets.json?asset[key]=config/settings_da...
produces a json output containing a reference to the image in question;
"logo": "shopify:\/\/shop_images\/a403eac45598213843f12eb307dce365.jpg"
But how can I then "use it to reference with the Shopify CDN."?
User | RANK |
---|---|
8 | |
7 | |
3 | |
3 | |
3 |
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...
ByYour online store speed can enhance your store’s discoverability, boost conversion rates a...
ByShopping is at our fingertips with mobile devices. Is your theme optimized to be user-frie...
By