- file_get_contents: documentation ( source)
- stream_context_create: documentation ( source)
<?PHP
$url = 'https://primarymarkets.my.salesforce.com/services/data/v43.0/';
$context = stream_context_create(array(
'http' => array(
'method' => 'GET',
'header' => 'Authorization:Bearer 00D7F000003h4EL!ARQAQF08VwjkZIYt7yj0j5unfbF_Q_T5b0l7OdE62I4vZ2SmFhKS5Psla8cgnFAb8H0oazFsOibOI6ceXon8loGZnv5npCHW',
'timeout' => 60
)
));
$resp = file_get_contents($url, FALSE, $context);
//print_r($resp);
?>