Closed BryanYeh closed 8 years ago
Shopify.exchange_temporary_token
POST
token
var Shopify = new shopifyAPI({ shop: 'MYSHOP', // MYSHOP.myshopify.com shopify_api_key: '', // Your API key shopify_shared_secret: '', // Your Shared Secret access_token: 'token', //permanent token });
DELETE
Shopify.delete
401 Invalid API key or access token (unrecognized login or wrong password)
My question is did I mess up or miss anything on any of the steps I listed to get the 401 error?
Once the user uninstalls the app, the token is no longer valid. You can not make requests on behalf of an uninstalled user.
You didn't do anything wrong per se, the API is working as expected.
Shopify.exchange_temporary_token
and saves token to databasePOST
creates uninstall webhookPOST
from webhooktoken
below, after shop, api key, secret are input correctlyDELETE
Shopify.delete
the uninstall webhook401 Invalid API key or access token (unrecognized login or wrong password)
My question is did I mess up or miss anything on any of the steps I listed to get the 401 error?