Skip to content
This repository has been archived by the owner on May 31, 2019. It is now read-only.

Unable to retrieve contents of specific assets via asset API #138

Closed
jfrankdev opened this issue Nov 11, 2018 · 1 comment
Closed

Unable to retrieve contents of specific assets via asset API #138

jfrankdev opened this issue Nov 11, 2018 · 1 comment

Comments

@jfrankdev
Copy link

jfrankdev commented Nov 11, 2018

I am working on creating an app with this repo. Everything is working great in retrieving product data and some data about assets but I am having trouble with retrieving the contents of asset files.

For example, this call works perfectly in retrieving a complete list of theme assets as an object:

https://72926fc0.ngrok.io/shopify/api/themes/38307725370/assets.json

However if I wish to make a call to a specific asset and retrieve its contents (the actual html/js/liquid whatever in the file), according to these docs https://help.shopify.com/en/api/reference/online_store/asset, this call should do it:

https://72926fc0.ngrok.io/shopify/api/themes/38307725370/assets.json?asset[key]=templates/index.liquid

What's weird is this call just retrieves the same data as the first call which is just a big list of the assets
in the theme as an object... but no specific asset contents.

calls like this /products/1977430802490.json inside the demo api console return a product object just fine.

Now I know we are using shopify-api-node for some things, but it doesn't seem to be involved after app init. That's why I was trying out these calls straight from the docs.

The call returns properly if you make a call like this without ngrok:
https://mystore.myshopify.com/admin/themes/38307725370/assets.json?asset[key]=templates/index.liquid

Anyone experience anything similar? What am I missing?

@nwtn
Copy link
Contributor

nwtn commented May 31, 2019

Closing because this project is now deprecated.

@nwtn nwtn closed this as completed May 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants