I'm working on a private Shopify application. I'm trying to get this resource (from Shopify endpoint):
https://store.myshopify.com/admin/products.json
using Net::HTTP library in this way:
url = 'https://'+@api_key+':'+@password+'@storename.myshopify.com/admin/products.json'
uri = URI(url)
response = Net::HTTP.get(uri)
p = JSON.parse(response)
But what I get is:
=> {"errors"=>"[API] Invalid API key or access token (unrecognized login or wrong password)"}
What is the correct way to get resources from Shopify admin endpoints?
