curl -X GET -H “x-api-key: TOKEN” -H “http://site.domain/handler?currency=eur”
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "TOKEN”");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$headers = array();
$headers[] = "“X-Api-Key: ";
$headers[] = "“Http: //site.domain/handler?currency=eur”";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Error:' . curl_error($ch);
}
curl_close ($ch);