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

scole954387
Excursionist
15 1 7

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. 

0 Likes
awwdam
Shopify Staff
Shopify Staff
65 6 3

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

0 Likes