I feel like I’m missing something extremely simple here. So i have the authentication session, and I essentially want to load the current Shop object to access somethings, like the email address, shop_owner, etc. How can I retrieve that to essentially get this response?
http://api.shopify.com/shop.html#show
I tried looking at /admin/shop.json and using
ShopifyAPI::Shop.find(someidnumber)
but no go?
The endpoint is
/admin/shop.json. If you’re using the ShopifyAPI gem, inresources/shop.rbyou’ll see there is acurrentfunction.Calling
ShopifyAPI::Shop.currentwill return a Shop object with the details you’re looking for.If you’re not getting the correct object/response back then you must not be authenticated properly.