I’m going to use the https://github.com/Shopify/shopify_app Gem
I want to be able to pull the orders into my rails app using the Shopify API.
The question I have is it possible to connect to a Shopify store without creating a Shopify app, like the eBay model?
Thanks
5
Answers
I’m pretty sure the answer is no. To do anything with the API you need to send the store’s OAuth token, and you can’t get that unless the store installs your app.
Shopify is a hosted solution.
It only allows communication from other apps through an API, and only if your app is run/initiated from their environment with authention tokens (even though your app’s real code will be hosted on your server)
Since the following works, I don’t see why not?
Source: https://help.shopify.com/api/reference/order#index
Just use your favourite http lib/gem.
You can use the Shopify private app which will provide you the secret and passwords and you can assign the needful resources you want to use and you can easily pull data from shopify without any public app
https://help.shopify.com/en/manual/apps/private-apps#generate-credentials-from-the-shopify-admin
Hope it will help
It’s possible with GraphQL. Here’s a codepen I use often (in javascript, not ruby, sorry) to quickly test if it’s working.
Just replace the contents of the endpoint and query variables with your store and query.