POST
说明
成功返回示例:
{
"res":"succ",
"data":
{
"total":xxxx, //当前帐号剩余可用短信条数
"packages":[
{
"package_id": "xxxxxxxxxxx", //生成的资源包id
"resource": xxxx, //资源包类型
"tag":xxxx, //资源包tag
"amount": xxxxx, //资源包总条数
"remain": xxxxx, //当前资源包剩余条数
"create_time": xxxxx, //资源包添加时间
"start_time": xxxxx, //资源包生效时间
"expire_time": xxxxx, //资源包过期时间
"consumers": ["product_id1","product_id2"], //允许消费此资源包的产品ID
"data":"{"xxxxxx":"xxxx"}"
"meta":"{"xxxxxx":"xxxx","xxxxxx":"xxxx"}"
},
{
"package_id": "xxxxxxxxxxx", //生成的资源包id
"resource": xxxx, //资源包类型
"tag":xxxx, //资源包tag
"amount": xxxxx, //资源包总条数
"remain": xxxxx, //当前资源包剩余条数
"create_time": xxxxx, //资源包添加时间
"start_time": xxxxx, //资源包生效时间
"expire_time": xxxxx, //资源包过期时间
"consumers": ["product_id1","product_id2"], //允许消费此资源包的产品ID
"data":"{"xxxxxx":"xxxx"}"
"meta":"{"xxxxxx":"xxxx","xxxxxx":"xxxx"}"
},
]
}
失败返回示例:
{
"res": "error",
"msgid": "xxxxxxxxxxx",
"code": "400",
"msg": "account is not exist, 请求的帐号不存在."
}
错误代码列表
|
POST
说明
调用示例:
content=xxxxx&phones=13800000000
调用成功时:
{"status": "succ", "code": 200, "msg": "", "data": {"taskid": "20130424000000043"}}
|
POST
说明
调用示例:
content=xxxxx&phones=13800000000,1390000000,13500000000&sendtime=13584324234&taskid=xxxxxxxxxxxxxxxxx
调用成功时:
{"status": "succ", "code": 200, "msg": "", "data": {"taskid": "20130424000000043"}}
|
POST
说明
调用示例:
content=xxxxx&phones=13800000000,1390000000,13500000000&sendtime=13584324234&taskid=xxxxxxxxxxxxxxxxx
调用成功时:
{"status": "succ", "code": 200, "msg": "", "data": {"taskid": "20130424000000043"}}
错误代码列表
|
POST
说明
调用示例:
taskid=xxxxxxxx&offset=20&limit=10
调用成功时:
{"status": "succ", "code": 200, "msg": "", "data": [{"phone": "1380000000", "mostatus":"succ", "mtstatus":""}, {"phone": "1380000000", "mostatus":"succ", "mtstatus":""}], "count":100000}
|
POST
说明
调用示例:
offset=20&limit=10
调用成功时:
{"status": "succ", "code": 200, "msg": "", "data": [{"taskid": "20130424000000043", "content":"发送内容", "total": 200, "fail": 180}, {"taskid":"xxxxxxx", "content":"发送内容", "total": 200, "fail": 180}], "count":100000}
|
POST
说明
调用示例:
offset=20&limit=10
调用成功时:
{"status": "succ", "code": 200, "msg": "", "data": [{"taskid": "20130424000000043", "content":"发送内容", "total": 200, "fail": 180}, {"taskid":"xxxxxxx", "content":"发送内容", "total": 200, "fail": 180}], "count":100000}
|
POST
说明
调用示例:
content=xxxxx&phones=13800000000,1390000000,13500000000&sendtime=13584324234&taskid=xxxxxxxxxxxxxxxxx
调用成功时:
{"msg": '', "res": "succ", "data": {"tplid": "aecb2lx"}}
错误代码列表
|
POST
说明
调用示例:
content=xxxxx&phones=13800000000,1390000000,13500000000&sendtime=13584324234&taskid=xxxxxxxxxxxxxxxxx
调用成功时:
{"msg": '', "res": "succ", "data": {"tplid": "aecb2lx"}}
错误代码列表
|
|