短信记录单条查询 - nxtele/http-api-document GitHub Wiki
简要描述:
- 短信记录通过messageid单条查询
请求方式:
- URL:
http://api2.nxcloud.com/api/sms/get
- Method:
POST
- Content-Type:
application/x-www-form-urlencoded
参数:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
appkey | 是 | string | 短信应用appkey |
secretkey | 是 | string | 短信应用secretkey |
date | 是 | string | 日期(yyyyMMdd) |
messageid | 是 | string | 请求短信发送接口时返回的messageid |
请求示例:
curl --location --request POST 'http://api2.nxcloud.com/api/sms/ge' \
--data-urlencode 'appkey=asdf' \
--data-urlencode 'secretkey=qwer' \
--data-urlencode 'date=20230202' \
--data-urlencode 'messageid=qwer1234567890'
返回示例
{
"code": "0",
"row": {
"billing_size": 1,
"date": "2021-06-28 09:00:00",
"senderid": "666",
"phone": "6288888888888",
"dr_time": "2021-06-28 09:00:00",
"billing_price": 0.0,
"msgid": "xxxxxxxxxxxxxxxxxxxxxxxx",
"billing_status": "UnBilled",
"body": "hello, your code is 888888",
"dr_status": "Success",
"dr": "DELIVRD",
"network": "PT TELEKOMUNIKASI SELULAR"
}
}
返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
code | string | 接口返回值 |
senderid | string | 短信senderid |
body | string | 短信内容 |
phone | string | 目标号码, 带国家号 |
msgid | string | 短信id |
dr_status | string | 提交状态(Success:成功;Fail:失败) |
billing_size | number | 计费条数 |
billing_price | number | 计费单价 |
date | string | 发送日期 |
dr_time | string | dr日期 |
billing_status | string | 计费状态(Billed:已计费;UnBilled:未计费) |
network | string | 运营商 |
dr | string | 运营商回执 |
备注
- 错误代码
code | 说明 |
---|---|
0 | success |
1 | params invalid |
2 | keys invalid |
3 | Only recent 31 days |