开发者社区> 问答> 正文

短信上行



短信上行



1 协议说明

参数说明
协议HTTP + JSON
编码UTF-8


2 请求说明


请求内容为JSONArray格式,单次请求可能会包含多个上行短信内容。


2.1 请求样例

<divre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. [
  2.   {
  3.     "phone_number" : "18612345678",
  4.     "send_time" : "20170901000000",
  5.     "content" : "内容",
  6.     "sign_name" : "签名",
  7.     "dest_code" : "1234",
  8.     "sequence_id" : 1234567890
  9.   }
  10. ]


2.2 字段说明

名称类型描述示例值是否必须
phone_numberString手机号码13900000001必须
send_timeString发送时间2017-01-01 00:00:00必须
contentString发送内容这是一条上行短信必须
sign_nameString签名信息xxxx可选
dest_codeString扩展号码1234必须
sequence_idNumber序列号1234567890必须




3 应答说明



3.1 应答样例

<pre style='background: rgb(246, 246, 246); font: 12px/1.6 "YaHei Consolas Hybrid", Consolas, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace; margin: 0px 0px 16px; padding: 10px; outline: 0px; border-radius: 3px; border: 1px solid rgb(221, 221, 221); color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; overflow: auto; word-spacing: 0px; white-space: pre-wrap; word-wrap: break-word; box-sizing: border-box; orphans: 2; widows: 2; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;' prettyprinted?="" linenums="">
  1. {
  2.   "code" : 0,
  3.   "msg" : "接收成功"
  4. }


3.2 字段说明

名称类型描述示例值是否必须
codeNumber应答编码0必须
msgString描述信息接收成功可选

展开
收起
nicenelly 2017-10-25 11:53:04 2034 0
0 条回答
写回答
取消 提交回答
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载