发送相同内容信息

 

1.请求地址

http://ip:port/inter/sms/V2/mt

 

2.请求参数

BODY

参数名称 参数类型 是否必填 参数说明
mobiles JsonArray 手机号,最多1000个号码
content String 短信内容,最长1000字
customId String 自定义Id(最长64位)
extendedCode String 扩展码(只能是数字,最长12位,超长截断)
timer String 定时发送时间(格式:yyyy-MM-dd HH:mm:ss

 

3.请求示例

 

{
    "mobiles":["12460034265","12972537276"],
    "content":"hello , it's test message",
    "customId":"18081923819112",
    "timer":"2021-10-11 12:10:10",
    "extendedCode":"01"
}

4.响应参数

 

参数名称 参数类型 是否必填 参数说明
success boolean 请求是否成功
code String 详见 响应错误码表
message String 请求响应描述
result JsonObject 请求结果内容

 

请求结果内容(result)参数说明

 

参数名称 参数类型 是否必填 参数说明
mobileList JsonArray 手机号和信息id数组
customId String 自定义Id(和传入的customId一致)

 

手机号和信息id数组(mobileList)参数说明

 

参数名称 参数类型 是否必填 参数说明
mobile String 手机号
smsId String 信息ID,以此对比状态报告

 

5.响应示例

{
    "success": true,
    "code": "SUCCESS",
    "message": "成功",
    "result": {
        "customId":"156787656787654344",
        "mobileList":[
             {
            "mobile":"15533388888",
             "smsId":"156787656787654345"
           },
           {
             "mobile":"15533399999",
             "smsId":"156787656787654346"
          }
      ]
   }
}

联系我们,立即申请免费使用机会!

免费咨询