<?php
	// Authorisation details.
	echo $username = "lokesh.b@cygnusa.in";
	echo '<br>';
	$hash = "5285a8ce7ab99dd881315d4830e919a0d67c74b5b071cdb4ed887d138b5b2f3f";

	// Config variables. Consult http://api.textlocal.in/docs for more info.
	$test = "0";

	// Data for text message. This is the text message data.
	$sender = "HYPERM"; // This is who the message appears to be from.
	$numbers = "9791172412"; // A single number or a comma-seperated list of numbers
	echo $message = 'Dear User, Your One Time Password (OTP) to register with HYPER-M App is 1234 and is valid for 1 minute. Thank you, Support Team';
	// 612 chars or less
	// A single number or a comma-seperated list of numbers
	$message = urlencode($message);
	$data = "username=".$username."&hash=".$hash."&message=".$message."&sender=".$sender."&numbers=".$numbers."&test=".$test;
	// $ch = curl_init('http://api.textlocal.in/send/?');
	// curl_setopt($ch, CURLOPT_POST, true);
	// curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
	// curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	// echo $result = curl_exec($ch); // This is the result from the API
	// curl_close($ch);
        echo $result="";
?>
 