Help with converting this php api code into coldfusion

Can anyone help me convert this php code into coldfusion?

while(! feof($file))
{
$row=fgetcsv($file);
print_r($row);
echo “
”;

$url = "https://analytics-02.mydomain.com/";
$url .= "?module=API&method=SitesManager.addSite";
$url .= "&siteName=".urlencode($row[0]);
$url .= "&urls=".$row[1];
$url .= "&token_auth=$token_auth";


$fetched = file_get_contents($url);
print_r ($fetched);
echo "<br>";

}