title: PHP and Shopify API connection
body: <p>I'm trying to learn the shopify api for a project. Tried a few pasted codes on their forum, adapting my code to theirs.</p>
  <p>The documentation says to do the authentication <a href="https://shopify.dev/tutorials/make-your-first-shopify-api-request" rel="nofollow noreferrer">this</a> way, by providing the following:</p>
  <p>https://{username}:{password}@{shop}.myshopify.com/admin/api/{api-version}/{resource}.json</p>
  <ul>
  <li>{username} — The API key that you generated</li>
  <li>{password} — The API password</li>
  <li>{shop} - The name that you entered for your development store</li>
  <li>{api-version} — The supported API version you want to use</li>
  <li>{resource} — A resource endpoint from the REST admin API</li>
  </ul>
  <p>I'm trying to do a GET request on all the orders made on the store.</p>
  <pre class="lang-php prettyprint-override"><code>/ info
  $API_KEY = '75c89bf******ea919ce****7702';
  $PASSWORD = '2061******82d2802**f***9403';
  $STORE_URL = '*****-na-***-c***.myshopify.com';
  
  $AUTHORIZATION = base64_encode($API_KEY . ':' . $PASSWORD);
  
  
  $url = 'https://' . $API_KEY . ':' . $PASSWORD . '@' . $STORE_URL . '/admin/api/2020-01/orders.json';
  
  
  $header = array();
  $header[] = 'Accept: application/json';
  $header[] = 'Content-Type: application/json';
  $header[] = 'Authorization: Basic ' . $AUTHORIZATION;
  
  $session = curl_init();
  
  //options
  curl_setopt($session, CURLOPT_URL, $url);
  curl_setopt($session, CURLOPT_HTTPHEADER, $header);
  curl_setopt($session, CURLOPT_GET, 1);
  curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
  
  //exec
  $response = curl_exec($session);
  curl_close($session);
  
  print_r($response);
  
  // error
  if($response === false)
  {
      print_r('Curl error: ');
  }
  
  </code></pre>
  <p>The code doesn't work at all, without any error code, completly blank, with only the first project echo showing.
  I verified my API keys and they are working, I can insert them manually into chrome.</p>