Hi, I need to learn how to use the API and I'm not sure exactly where to begin.
I'm not alien to basic code, as I think I'm pretty skilled at HTML and intermediately skilled at CSS.
However, I need a crash course in using APIs. I haven't gotten the slightest clue on how to even begin with it.
Does anyone have a sort of "idiot's guide" to using an API and maybe making apps on Shopify?
Thank you for your patience.
Solved! Go to the solution
This is an accepted solution.
Shopify has an official guide: https://developers.shopify.com/tutorials/build-a-shopify-app-with-node-and-react
They also have a CLI that generates a starter project and handles some things for you: https://github.com/Shopify/shopify-app-cli
Unfortunately, the tutorial and CLI use React, Next.js, Node.js/Koa, and GraphQL, which all have some degree of learning curve, so may be a lot for you to work with. None of those things are actually necessary to build a Shopify app, though.
Do you have any experience with Node.js? Are you familiar with npm/yarn package managers?
Shopify uses something called OAuth to allow Shopify apps to hit their APIs to access store data after an app is installed on a store. OAuth is a common standard for authentication flows. When you sign into an app with Google, or give an app permission to access your data on another app, it's following OAuth.
The big idea is that when someone installs your app, your server ends up with an access token for that specific user/store. The server stores this in a "session," and any time your app hits the Shopify API, they pass the token along.
Thank you for the starting information.
I've only heard these things' names before, and am not familiar with any workings, but this gives me a good start. Thank you!