首页 > 其他分享 >发送短信功能

发送短信功能

时间:2022-11-02 15:33:53浏览次数:48  
标签:功能 短信 gotoai sms 发送 api https net gateway

postman验证

智慧短信平台接口:
鉴权接口:https://gateway.sms.gotoai.net/api/v2/auth
短信发送:https://gateway.sms.gotoai.net/api/v2/send
点对点短信:https://gateway.sms.gotoai.net/api/v2/p2p
查询余额:https://gateway.sms.gotoai.net/api/v2/balance
状态报告:https://gateway.sms.gotoai.net/api/v2/report
接入方式:SMSV2
账户:901147
接口密码:66L1a%H@T%yNvF0+
虚拟接入码:10690019531147

 

1.获取token路径 

//获取token路径
https://gateway.sms.gotoai.net/api/v2/auth

//headers中
Content-Type :application/json;charset=utf-8

 

 

 传两个参数(一个账户:901147,一个接口密码:66L1a%H@T%yNvF0+)

{

    "account" : "901147",

    "password" : "66L1a%H@T%yNvF0+"

}

 

 

 2.短信发送

//短信发送路径
https://gateway.sms.gotoai.net/api/v2/send

//headers中
Content-Type  : application/json;charset=utf-8
Authorization  : 上方获取的 token

 

 传三个参数(一个是接收号码,一个是发送内容,一个是发送号码固定的)

{

    "phoneNumbers" : [

        "15396997759"
    ],

    "messageContent" : "【徐圩】",

    "accessNumber" : "10690019531147"

}

 

 

标签:功能,短信,gotoai,sms,发送,api,https,net,gateway
From: https://www.cnblogs.com/sudeng/p/16851153.html

相关文章