fork download
  1. <?php
  2.  
  3. $curl = curl_init();
  4.  
  5. CURLOPT_URL => 'https://4...content-available-to-author-only...e.com/services/rest/record/v1/inventoryItem/10372',
  6. CURLOPT_RETURNTRANSFER => true,
  7. CURLOPT_ENCODING => '',
  8. CURLOPT_MAXREDIRS => 10,
  9. CURLOPT_TIMEOUT => 0,
  10. CURLOPT_FOLLOWLOCATION => true,
  11. CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  12. CURLOPT_CUSTOMREQUEST => 'GET',
  13. CURLOPT_HTTPHEADER => array(
  14. 'Authorization: OAuth realm="4072338",oauth_consumer_key="faffd8274262375c0f7b2d896c4f2370e7309e0d5dc6206b101e0dd5a93f1b48",oauth_token="b373ee0f4f3147d2131592ea77a390745908125ce913fe3ccfde4a5e5762b176",oauth_signature_method="HMAC-SHA256",oauth_timestamp="1754473578",oauth_nonce="cJuB0BRIDCn",oauth_version="1.0",oauth_signature="ESLxnSiPFngtn0LlGHWkG%2Bl3%2BmushRgQc85a%2B%2BIvlDs%3D"'
  15. ),
  16. ));
  17.  
  18. $response = curl_exec($curl);
  19.  
  20. curl_close($curl);
  21. echo $response;
  22.  
Success #stdin #stdout 0.04s 26600KB
stdin
Standard input is empty
stdout
Standard output is empty