Send SMS Verification code to Mobile Using PHP API

Page 1

Send OTP (One time password) SMS to mobile number for verification using API code Looking for way to verify user's mobile number with SMS OTP ?

We are here to help

Verify user phone numbers quickly and effectively using the SMS API. Add SMS Verification to Software and secure user data and authenticate users With the PHP Send SMS API, easy to setup a simple, one time pin code system to verify user phone numbers across the globe and ensure software stays secure Using the Send SMS API, we take care of the verification backend, from sending and managing the text SMS, so you just need to integrate our SMS verification code into your software.

SMS verification PHP API -

http://msg msgclub net/rest/services/sendSMS/sendGroupSms?AUTH KEY=YourAuthKey& message=

message&senderId=dddddd&routeId=1&mobileNos=9999999999&smsContentType=engli

sh

Send a unique security code to any mobile device via SMS. Use this API to verify personal details, help to reduce fraud, hacking and Spamming

Supply own security code You can use to detect if a number is actually a valid mobile device and is switched on, will receive SMS

With SMS verification PHP API, we too provide source code in PHP language

function sendsmsGET($mobileNumber,$senderId,$routeId,$message,$serverUrl,$authKey)

{ $getData = 'mobileNos=' $mobileNumber'&message=' urlencode($message) '&senderId=' $senderId '&ro uteId='.

$routeId; //API URL

$url="http://" $serverUrl "/rest/services/sendSMS/sendGroupSms?AUTH KEY=" $authKey"&" .$getData;

// init the resource

$ch = curl init();

curl setopt array($ch, array(

CURLOPT URL => $url,

CURLOPT RETURNTRANSFER => true,

<?php

CURLOPT SSL VERIFYHOST => 0,

CURLOPT SSL VERIFYPEER => 0

//get response

$output = curl exec($ch); //Print error if any if(curl errno($ch)) { echo 'error:' . curl error($ch);

} curl close($ch); return $output;

));
}

function sendsmsPOST($mobileNumber,$senderId,$routeId,$message,$serverUrl,$authKey)

//Prepare you post parameters

$postData = array(

'mobileNumbers' => $mobileNumber, 'smsContent' => $message, 'senderId' => $senderId, 'routeId' => $routeId, "smsContentType" =>'english'

{
);

$data json = json encode($postData);

$url="http://" $serverUrl "/rest/services/sendSMS/sendGroupSms?AUTH KEY=" $authKey;

// init the resource

$ch = curl init();

curl setopt array($ch, array(

CURLOPT URL => $url,

CURLOPT HTTPHEADER => array('Content-Type: application/json','Content-Length: ' . strlen($data json)),

CURLOPT RETURNTRANSFER => true,

CURLOPT POST => true,

CURLOPT POSTFIELDS => $data json,

CURLOPT SSL VERIFYHOST => 0,

CURLOPT SSL VERIFYPEER => 0

));

//get response

$output = curl exec($ch);

//Print error if any

if(curl errno($ch)) { echo 'error:' curl error($ch); } curl close($ch);

return $output;

For more details contact us.

Tags : Verification using API code, SMS API,SMS Verification php ,PHP Send SMS API, send SMS API, SMS verification code, Mobile device via SMS, text SMS API for mobile number verification

} ?>

Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.