1.请求格式

HTTP方法 URL 描述
POST http://ip:port/msgHttp/json/multimt具体地址咨询客服
消息参数 是否必填 描述
account 用户接口账号
password 数字签名:(接口密码、手机号、时间戳32位MD5加密生成)
objjson 多功能短信发送内容 json格式字符串,格式见下表
timestamps 时间戳,短信发送当前时间毫秒数,生成数字签名用,有效时间1分钟,强烈建议实时生成
sheduledTime 定时任务,定时时间点 时间戳 毫秒值

示例:

password=48b2c7fedbccb1453529328e56308bcd&account=yali001×tamps=1489932876685&sheduledTime=1490012876685&objjson=%7B%22content%22%3A%22%E5%B0%8A%E6%95%AC%E7%9A%84%23code%23%EF%BC%8C%E6%82%A8%E7%9A%84%E4%BD%99%E9%A2%9D%E4%B8%BA%23code%23%22%2C%22mobileParms%22%3A%5B%7B%22parms%22%3A%5B%22%E7%94%A8%E6%88%B70%22%2C%22000%22%5D%2C%22mobile%22%3A%2213710000000%22%7D%2C%7B%22parms%22%3A%5B%22%E7%94%A8%E6%88%B71%22%2C%22100%22%5D%2C%22mobile%22%3A%2213710000001%22%7D%2C%7B%22parms%22%3A%5B%22%E7%94%A8%E6%88%B72%22%2C%22200%22%5D%2C%22mobile%22%3A%2213710000002%22%7D%2C%7B%22parms%22%3A%5B%22%E7%94%A8%E6%88%B73%22%2C%22300%22%5D%2C%22mobile%22%3A%2213710000003%22%7D%2C%7B%22parms%22%3A%5B%22%E7%94%A8%E6%88%B74%22%2C%22400%22%5D%2C%22mobile%22%3A%2213710000004%22%7D%5D%7D

2.Objjson 对象格式

消息 类型 描述
content String 短信内容,变量以 #code#代替
mobileParms Object[] 手机号,内容变量参数, 为了发送效率,建议不要超过2000个每批
Mobile String 接收手机号
parms String集合 参数集合,参数个数0 -- 10

示例:

{
    "content": "尊敬的#code#,您的余额为#code#",
    "mobileParms": [
        {
            "parms": [
                "用户0",
                "000"
            ],
            "mobile": "13710000000"
        },
        {
            "parms": [
                "用户1",
                "100"
            ],
            "mobile": "13710000001"
        },
        {
            "parms": [
                "用户2",
                "200"
            ],
            "mobile": "13710000002"
        },
        {
            "parms": [
                "用户3",
                "300"
            ],
            "mobile": "13710000003"
        },
        {
            "parms": [
                "用户4",
                "400"
            ],
            "mobile": "13710000004"
        }
    ]
}

3.响应格式

消息 类型 描述
Rets Object[] 结果返回集合,每个提交手机号对应以下子元素
Rspcode Int 响应码 见附录- respcode
Msg_Id String 信息标识,用于对应状态报告 响应码不成功时无此内容
Mobile String 手机号
Fee Int 计费数,计费数以运营商网关计费为准

返回报文示例:

{
  "Rets": [
    {
      "Rspcode": 0,
      "Msg_Id": " 514899328243063027",
      "Mobile": "13710000002",
" Fee ": -1
    },
    {
      "Rspcode": 0,
      "Msg_Id": " 514899328243063028",
      "Mobile": "13710000002",
" Fee ": -1
    }
  ]
}

©2018 秒速时时彩-秒速时时彩注册-秒速时时彩平台【官方】 沪ICP备15028075号-3