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