# 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)
```
Python库 | msg91-sms-1.0.1.tar.gz
版权申诉
170 浏览量
2022-04-11
12:34:34
上传
评论
收藏 3KB GZ 举报
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
最新资源
- C语言实现基于STM32F103RC的电子相册(原理图、PCB源文件、程序源码及制作).zip
- C语言实现基于stm32和mpu9250的usb hid键盘、鼠标、游戏控制器.zip
- SAP GUI for Windows 7.70 Patch16
- C语言实现基于物联网的户外环境检测装置(STM32、APP、WIFI).zip
- Models for ICM/MCM美赛常用模型.zip
- cef源码CEF全称Chromium Embedded Framework
- hbase分布式.rar
- vc 6.0简介.rar
- C语言实现智能家居专用-STM32 以太网开发板电路设计(开源带例程).zip
- 基于深度学习的分类.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈