fork download
  1. <?php
  2. $cURLConnection = curl_init();
  3.  
  4. curl_setopt($cURLConnection, CURLOPT_URL, 'https://a...content-available-to-author-only...i.dev/objects');
  5. curl_setopt($cURLConnection, CURLOPT_RETURNTRANSFER, true);
  6.  
  7. $phoneList = curl_exec($cURLConnection);
  8. echo $curlError = curl_error($cURLConnection);
  9. curl_close($cURLConnection);
  10.  
  11. $jsonArrayResponse = json_decode($phoneList);
  12. print_r($jsonArrayResponse);die;
  13. ?>
  14.  
Success #stdin #stdout 0.03s 25956KB
stdin
Standard input is empty
stdout
Could not resolve host: api.restful-api.dev