【文件属性】:
文件名称:sipgateio-sendsms-node:有关如何使用sipgate REST API发送SMS的演示
文件大小:8KB
文件格式:ZIP
更新时间:2021-04-28 14:22:47
JavaScript
sipgate.io Node.js发送短信示例
为了演示如何发送SMS,我们查询了sipgate REST API的/sessions/sms端点。
有关sipgate REST API的更多信息,请访问
先决条件
Node.js> = 10.15.3
如何使用
导航到项目的根目录。
安装依赖项:
npm install
为了运行代码,您必须在设置以下变量:
const tokenId = "YOUR_SIPGATE_TOKEN_ID" ;
const token = "YOUR_SIPGATE_TOKEN" ;
const recipient = "RECIPIENT_PHONE_NUMBER" ;
const message = "YOUR_MESSAGE" ;
const smsId = "YOUR_SIPGATE_SMS_EXTENSION" ;
令牌应具有sessi
【文件预览】:
sipgateio-sendsms-node-master
----.gitignore(5KB)
----package.json(453B)
----package-lock.json(707B)
----LICENSE(1KB)
----index.js(922B)
----README.md(8KB)