Email Verification

$objID);
$jsonEncode = json_encode($data);
$tuCurl = curl_init();
curl_setopt($tuCurl, CURLOPT_URL, “https://api.parse.com/1/functions/emailVerified”);
curl_setopt($tuCurl, CURLOPT_HTTPHEADER, array(
‘X-Parse-Application-Id: clKzmbnORrNjBf6rY1Of82hjHTcI6rGtrRRudQ2M’,
‘X-Parse-REST-API-Key: 2pf3NCjzXAPYdp4ESRVfQXjnMiQrSk1kY7hCOP3s’,
‘Content-Type: application/json’
));
curl_setopt($tuCurl,CURLOPT_POST, 1);
curl_setopt($tuCurl,CURLOPT_POSTFIELDS, $jsonEncode);
curl_setopt($tuCurl, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($tuCurl);
curl_close($tuCurl);

if (strpos($output,’Email has been verified.’) !== false) {
echo ‘Email has been verified. Please exit and re-start SwingProfile for registration to take effect.’;
}
elseif (strpos($output,’Invalid link.’) !== false) {
echo ‘Email has been verified before’;
}
elseif (strpos($output,’Error in verifying the email’) !== false) {
echo ‘Error in verifying the email’;
}
else
{
echo ‘Data not found’;
}
}
else
{
echo ‘Invalid link’;
}
?>

Download Now For FREE

SwingProfile golf swing analyzer and training aid is a must-have for golfers of all level.

Download on the App Store