SMS api using php laravel

Your customers are craving a personalized experience. Add value to their journey in the most reliable way possible. Land SMS in customers’ inbox within seconds! Win them over with Sinch SMS API.

$phone= $request->phone;
$rndno=rand(10000, 99999);
// MAveric SMS API Start

$api_key = '363FA2B5D4DFFB';
$contacts = $phone;
$from = 'THEDDS';
$sms_text = urlencode("Your%20Verification%20Code%20for%20TheDDS.in%20is%3A%20%7B%23var%23%7D");

$api_url = "https://jskbulkmarketing.in/app/smsapi/index.php?key=".$api_key."&campaign=12829&routeid=3&type=text&contacts=".$contacts.",&senderid=".$from."&msg=Your%20Verification%20Code%20for%20TheDDS.in%20is%20".$rndno."&template_id=1707164075479009978&pe_id=1701163902701724080";

$response = file_get_contents( $api_url);
$_SESSION['mnuserotp']=$rndno;

 

 

 

 

 

Leave a Reply