- Your redirect URL
- Your client ID
- Your client secret
Authorize URL
Link your users to this URL to start the login process for your app. Always usemy-shop.fourthwall.com as the shop URL as this will link to the logged in user’s current shop.
You can copy this URL from the OAuth tab of your app. You will need to provide your Client ID in the path (you can get this from your apps settings page), your redirect URL, as well as an optional state parameter.
Getting an access token
After the user has authorized your app, they will be redirected to your redirect URL with an authorization code and the state parameter if you provided one. You will need to exchange this code for an access token.access_token, refresh_token, and other information.
Using the access token
Refreshing the access token
Access tokens expire rather quickly (within a few minutes). You can use therefresh_token to get a new access token without having to re-authorize the user.