Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mobile Phone no. verification

I am designing a website.I want to validate the mobile no. entered by the user on the registration page, by sending a verification code to his mobile phone. Can anyone give me pointers to how should i proceed with it??

like image 754
Nitin Garg Avatar asked Dec 14 '22 01:12

Nitin Garg


1 Answers

i Proudly recommend cognalys (note: I work for cognalys)

Because it provides an elegant API to verify international mobile numbers which can be integrated on any platform .

Step1 :

https://www.cognalys.com/api/v1/otp/?app_id=YOUR_OTP_APP_ID&access_token=YOUR_OTP_ACCESS_TOKEN&mobile=MOBILE

it will generate a missed call to the requested mobile number . And return a keymatch (to authenticate step 2 ) and otp_start ( the first five digits of the missed call number )

Step 2 :

https://www.cognalys.com/api/v1/otp/confirm/?app_id=YOUR_OTP_APP_ID&access_token=YOUR_OTP_ACCESS_TOKEN&keymatch=KEYMATCH&otp=OTP

Ask your user to enter the last five digit of the missed call number concatenate otp_start and last five digit for parameter otp and hit the API including keymatch

You are done ! . It uses a unique technique to verify mobile number

like image 52
Xavier - Tech at Cognalys Avatar answered Dec 28 '22 10:12

Xavier - Tech at Cognalys