How to use Axios to fetch Rest API via the Shopify Node/Next app created with Shopify CLI?

How to use Axios to fetch Rest API via the Shopify Node/Next app created with Shopify CLI?

scole954387
Shopify Partner
20 1 10

How do I access admin api data via REST with an embedded shopify app using node.js/next that was created with the Shopify CLI?

I found the article where it says I need to create an instance of axios to pass the authenicated requests but I can't seem to get it to work.

https://shopify.dev/tutorials/use-session-tokens-with-axios

Any help is appreciated. 

Reply 1 (1)

awwdam
Shopify Staff
249 42 36

Hey @scole954387, can you confirm that all of the requirement listed in the tutorial you shared are already being met? If so, can you provide some more context on any unexpected behaviours or troubleshooting you have tried so far?   

awwdam | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog