A simple and easy to use Python package to send SMS using MSG91 SMS API.
Project description
MSG91 SMS Package for Python
With this Python package you can send SMS using MSG91 SMS API. This Python package allow to send transactional SMS, promotional SMS, OTP SMS, verify OTP and resend OTP.
How to use?
This package uses requests and json module. So first you have to import these packages:
import json
import requests as req
Then import the msg91-sms package:
import msg91_sms as msgsms
Working with SMS
First start with your SMS auth key: msgclass = msgsms.Cspd_msg91(apikey='Your MSG91 AKI Key')
Send SMS
msgclass.send(route,sender,phone_number,SMS_text)
Send OTP
msgclass.send_otp(sender,phone_number,SMS_text)
Verify OTP
msgclass.verify_otp(phone_number,OTP_code)
Resend OTP
msgclass.resend_otp(phone_number)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
msg91-sms-1.0.tar.gz
(2.6 kB
view hashes)