拉取短信回复接口
请求说明
- 接口请求域名 : api.ffrcs.cn
- RequestURI : /rest/sms/v3/pull/deliver
- Method : POST
- Content-Type : application/json; charset=utf-8;
默认接口请求频率限制:1次/秒。
输入参数
| 参数 | 类型 | 描述 | 示例 | 必填 |
|---|---|---|---|---|
| limit | Integer | 单次拉取最大条数,最多1000条。 | 100 | 是 |
响应内容
| 参数 | 类型 | 描述 |
|---|---|---|
| code | Intege | 响应状态 |
| message | String | 响应状态描述 |
| data | Object | 数据节点 |
| data.statusSet | PullDeliverPacket[] | 短信发送状态信息 |
PullDeliverPacket
| 参数 | 类型 | 描述 |
|---|---|---|
| phoneNumber | String | 手机号码。 |
| content | String | 短信回复内容。 |
| subCode | String | 扩展号。 |
| revTime | Int64 | 接收时间。时间戳类型。 |
示例
请求示例
curl 'https://api.ffrcs.cn/rest/sms/v3/pull/deliver' \
--header 'Content-Type: application/json' \
--header 'X-FZ-Timstamp: 1713152159772 ' \
--header 'Authorization: HmacSHA256 credential=1kl***,signature=1264b693*******be05bef' \
--data '{
"limit": 100
}'
响应示例
{
"msg": "成功",
"code": "ok",
"data": {
"deliverSet": [
{
"phoneNumber": "130****",
"content": "R",
"subCode": "123",
"revTime": 1713150159772
}
]
}
}
错误码
错误码参考- 错误码