queryTxtMsg
将废弃GET
/sims/{query_type}/{value}/textmessage/query简要描述
版本:
4.0.0
适用场景:
有SIM卡ID,查询特定SIM卡某时间段内的全部上行/MO短信内容。
业务规则:
- 指定SIM卡查询时,每次可查询一个SIM卡,且时间跨度不能超过一年
必要条件:
- 该SIM卡支持短信上行能力
上行短信指设备向运营商发送的短信。资源是否具备上行能力,最终以领科商务人员告知为准
SDK API 调用方式
PartnerClient client = new PartnerClient(accessKey,privateKey)
client.v1().other().simMoList(SimMoList.builder(1, "mt_id", "5077").receivedStartTime("2021-06-16 00:00:00").receivedEndBy("2021-06-16 23:59:59").pageNo(1).pageSize(10)
client.v2().other().simMoList(SimMoList.builder(1, "mt_id", "5077").receivedStartTime("2021-06-16 00:00:00").receivedEndBy("2021-06-16 23:59:59").pageNo(1).pageSize(10)
请求参数
Path 参数
query_type
string
必需
枚举,取值范围:指定下行查询上行:mt_id,查询SIM卡全部上行:sim_id
value
string
必需
当query_type=mt_id时,填写上行短信的ID,当query_type=sim_id时,填写SIM卡的ICCID
Query 参数
received_start_time
string
必需
接收开始时间,UTC时间
received_end_by
string
必需
接收结束时间,UTC时间
page_no
integer
页码,初始页为1
示例值:
0
page_size
integer
必需
页条数,每页最大100
示例值:
0
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
No schema defined
示例
{
"data": {
"list": [
{
"text_message": "hdhdhdj123456789",
"created_at": "2021-06-16 11:14:57"
},
{
"text_message": "545445hdhddhdh",
"created_at": "2021-06-16 11:13:37"
},
{
"text_message": "hdhdhdhd99999",
"created_at": "2021-06-16 11:13:18"
},
{
"text_message": "ces qwe\n",
"created_at": "2021-06-16 11:02:55"
},
{
"text_message": "jdjddjdj",
"created_at": "2021-06-16 10:59:12"
},
{
"text_message": "we123456",
"created_at": "2021-06-16 10:53:40"
},
{
"text_message": "hulouha123456",
"created_at": "2021-06-16 10:41:20"
},
{
"text_message": "sankou123456\n",
"created_at": "2021-06-16 10:40:26"
},
{
"text_message": "shangxing test",
"created_at": "2021-06-16 09:42:41"
},
{
"text_message": "test",
"created_at": "2021-06-16 09:27:46"
}
],
"total": 10
},
"status": {
"code": "CB-00-0000",
"message": "成功",
"detail": "https://developer.linksfield.net/doc-1413557?nav=01GBM770ARR76AXBD5856Z6J6P"
}
}
最后修改时间: 1 年前