I've used CURL quite a bit with my existing systems and it works well. Here for example is the php code I use to translate some text via Google Translate .
$api_key = 'myBigLongAPIkey';
$text = "Please translate my text";
$url = 'https://www.googleapis.com/language/translate/v2?key='.$api_key.'&q='.rawurlencode($text).'&target=fr&source=en&format=text';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$res = curl_exec($ch);
But I'm trying to follow some instructions for a new API call I need to make and I'm not sure how to translate the following into something like my PHP call above. Can you help me convert this into the format like what I have in the code above?
curl -H "Authorization: Token token=myBigLongAPIkey" -H "Content-Type: application/json" -X GET "https://domain.com/apinames/1?include=owner"