ruby on rails - Shopify API call from App Proxy Controller
I need to make an API call from the Proxy App Controller. I know I need to retrieve my Session from Database after the User has Installed the APP, but I don't know how to do it?
I have a Rails / Heroku APP.
Every call from Shopify to your Proxy Endpoint provides security data you use to validate the call. You use that data to figure out who is calling. Since you're given the "Who", use that to open up a Session valid to make API calls for "Who" is calling. That is pretty much spelled out in the documentation on validating App Proxy calls, which are validated the same as Webhook calls, another source of info for you if you find yourself lost.
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.