/sendotp-python

Primary LanguagePythonMIT LicenseMIT

sendotp-python

Python package for the SendOTP API (https://sendotp.msg91.com/).

Installation

pip install sendotp

Basic Usage

import sendotp

otpobj =  sendotp.sendotp('Autk-Key','my message is {{otp}} keep otp with you.')

# 3245 is the otp to send
print otpobj.send(919981534313,'msgind',3245)

print otpobj.verify(910000000000,3245)

print otpobj.retry(910000000000) OR
print otpobj.retry(910000000000,'text')