Skip to content

查询某段时间内的所有记录

dy.Zhuang edited this page May 26, 2021 · 5 revisions

简要描述:

  • 查询某段时间内的所有记录

请求URL:

  • http://api2.nxcloud.com/opt/call/list

请求方式:

  • GET
    GET http://api2.nxcloud.com/otp/call/list?start=2021-04-27%2017%3A00%3A00&end=2021-04-27%2018%3A00%3A00&appkey=aaa&appsecret=bbb 
    

请求参数:

参数名 类型 说明
appkey string 牛信平台,flash call 应用的 app key
secretkey string 牛信平台,flash call 应用的 secret key
start string 查询时间范围的开始时间,格式为: yyyy-MM-dd HH:mm:ss
end string 查询时间范围的结束时间,格式为: yyyy-MM-dd HH:mm:ss

返回示例

{
  "cdrs": [
    {
      "id": 4,
      "customerId": 1,
      "appId": 1,
      "msisdn": "182182182",
      "callingNumber": "2150928925",
      "token": "8925",
      "requestId": "3097f48a0c6e465586e9f7cc5a922b90",
      "ip": null,
      "price": 0.0,
      "gmtCreate": "2021-04-27 17:02:22",
      "gmtModified": null,
      "callStartAt": null,
      "callEndAt": null,
      "callbackAt": null,
      "callStatus": 0
    },
    {
      "id": 5,
      "customerId": 1,
      "appId": 1,
      "msisdn": "182182182",
      "callingNumber": "2150928927",
      "token": "8927",
      "requestId": "7674dc8e75774c09a470c3b0b0aa6a5d",
      "ip": null,
      "price": 0.0,
      "gmtCreate": "2021-04-27 17:02:44",
      "gmtModified": null,
      "callStartAt": null,
      "callEndAt": null,
      "callbackAt": null,
      "callStatus": 0
    }
  ],
  "code": "0"
}

返回参数说明

参数名 类型 说明
code string 结果编码,为0是成功,其他都是失败,具体参考失败代码表
cdrs json 符合条件的 flash call 呼叫记录。
此接口没有分页,同时限制最大返回条数 100。
如果想要查询更多,请以上次返回的最后一条的 gmtCreate 字段,作为 start 参数的值重新查询

简介

短信

语音

云呼叫中心(NXLink)

云呼叫中心(AI自动外呼)

Flash Call

短链

邮件验证码

DID号码

通用

号码检测

WhatsApp

Viber

Zalo ZNS

Super Message API

隐私号(旧)

PNS

坐席(旧版)

AI Agent

Clone this wiki locally