in php/topsites.php [67:80]
protected function makeRequest($url) {
echo "\nMaking request to:\n$url\n";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_TIMEOUT, 4);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Accept: application/xml',
'Content-Type: application/xml',
'x-api-key: ' . $this->apiKey
));
$result = curl_exec($ch);
curl_close($ch);
return $result;
}