hirenrojasara / Msg91

Msg91 API for node.js
13 stars 20 forks source link

How to use for OTP ? #5

Open amitbravo opened 7 years ago

amitbravo commented 7 years ago

what transaction codes I need to use and whats the formate to send OTP sms ?

hirenrojasara commented 7 years ago

You can not use sendotp service using this library. I will update it soon. Till then you can use official document and make GET request to sendOTP service.

Msg91 Documentation: Documentation

amitbravo commented 7 years ago

by when I can expect the update ?

On Sat, Aug 5, 2017 at 6:05 PM, Hiren Soni notifications@github.com wrote:

You can not use sendotp service using this library. I will update it soon. Till then you can use official document and make GET request to sendOTP service.

Msg91 Documentation: https://control.msg91.com/apidoc/sendotp/send-otp.php

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hirenrojasara/Msg91/issues/5#issuecomment-320441384, or mute the thread https://github.com/notifications/unsubscribe-auth/AP35BVOkbq6rZw-U278CfLwc6mqDhkRSks5sVGGogaJpZM4OuciI .

Pankajtanwarbanna commented 5 years ago

You can use this service for OTP verification as well. Just generate a 4 digit random number, save it to user's database, send using Transactional Route to registered mobile number and verify when user enters the OTP.

It is a tricky method not official :)