GetHistoricalCallerReport - 获取历史来电报表

更新时间:
复制为 MD 格式

调用GetHistoricalCallerReport获取指定实例下指定来电号码的历史呼入报表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称

类型

必填

描述

示例值

InstanceId

string

实例 ID。

ccc-test

CallingNumber

string

来电号码。

1900000****

StopTime

integer

查询的结束时间戳,格式为 Unix 时间戳,单位毫秒。

1646928000000

StartTime

integer

查询的开始时间戳,格式为 Unix 时间戳,单位毫秒。

1646841600000

返回参数

名称

类型

描述

示例值

object

Code

string

响应码。

OK

HttpStatusCode

integer

HTTP 状态码。

200

Message

string

响应信息。

RequestId

string

请求 ID。

BA03159C-E808-4FF1-B27E-A61B6E888D7F

Data

object

数据。

LastCallingTime

integer

最近一次来电时间,格式为 Unix 时间戳,单位毫秒。

1646917200000

TotalCalls

integer

该号码在查询时间段的总来电次数。

10

示例

正常返回示例

JSON格式

{
  "Code": "OK",
  "HttpStatusCode": 200,
  "Message": "无",
  "RequestId": "BA03159C-E808-4FF1-B27E-A61B6E888D7F",
  "Data": {
    "LastCallingTime": 1646917200000,
    "TotalCalls": 10
  }
}

错误码

HTTP status code

错误码

错误信息

描述

400 Parameter.Format The format of parameter %s is invalid. %s 该参数的格式不合法。
400 Parameter.Invalid The parameter %s is invalid. %s. 该参数无效。
500 InternalService.Common An internal service error occurred. %s 内部服务错误。

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情