SalesForce Leads - GET
<?php
$apiurl = 'https://[instance_url]/services/data/v37.0/sobjects/Lead/';
$headers = [
'Authorization: Bearer [token]',
'Content-Type: application/json'
];
$http = curl_init();
curl_setopt($http, CURLOPT_HEADER, false);
curl_setopt($http, CURLOPT_RETURNTRANSFER, true);
curl_setopt($http,CURLOPT_URL, $apiurl);
$results = curl_exec($http);
$http_status = curl_getinfo($http, CURLINFO_HTTP_CODE);
$info = curl_getinfo($http);
$results_json = json_decode($results);
curl_close($http);
?>