Skip to content

Instantly share code, notes, and snippets.

@sureshdsk
Created September 28, 2014 09:02
Show Gist options
  • Save sureshdsk/d21221110b91d7f6c6c6 to your computer and use it in GitHub Desktop.
Save sureshdsk/d21221110b91d7f6c6c6 to your computer and use it in GitHub Desktop.
curl_request.php
$ch = curl_init($json_url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type:application/json',
'Auth-Token:MYTOKEN'
));
$data_m = curl_exec($ch);
echo "<pre>";
print_r($data_m);
echo "</pre>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment