调用GetCallMeasureSummaryReport查询某天或某月各个号码的呼叫计量数据列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetCallMeasureSummaryReport |
系统规定参数。取值:GetCallMeasureSummaryReport。 |
IntervalType | String | 是 | Monthly |
按月查询或者按天查询(**Monthly** | **Daily**) |
Month | Integer | 是 | 12 |
月份 |
Year | Integer | 是 | 2019 |
年份 |
Day | Integer | 否 | 20 |
日期 |
PageNumber | Integer | 否 | 1 |
分页序号,默认1。 |
PageSize | Integer | 否 | 50 |
分页大小,默认50,最大100。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Code | String | OK |
响应码 |
HttpStatusCode | Integer | 200 |
HTTP状态码 |
Message | String | 无 |
响应信息 |
NumberReports |
号码计量数据报表 |
||
List |
号码报表列表 |
||
NumberReport |
号码报表列表 |
||
Day | Integer | 31 |
日期 |
InboundCount | Long | 0 |
呼入接通次数 |
InboundDurationByMinute | Long | 0 |
呼入通话时长/分钟 |
Month | Integer | 10 |
月份 |
Number | String | 073188888888 |
号码 |
OutboundCount | Long | 18 |
呼出接通次数 |
OutboundDurationByMinute | Long | 2108 |
呼出通话时长/分钟 |
Year | Integer | 2018 |
年份 |
PageNumber | Integer | 1 |
分页序号 |
PageSize | Integer | 50 |
分页大小 |
TotalCount | Integer | 22 |
个数 |
RequestId | String | BF268B34-09C2-43FD-BAC4-5D31EA633111 |
请求ID |
Success | Boolean | true |
是否成功 |
SummaryReport |
当天或当月的汇总报表 |
||
Day | Integer | 20 |
日期 |
InboundCount | Long | 1 |
呼入接通次数 |
InboundDurationByMinute | Long | 47 |
呼入通话时长/分钟 |
Month | Integer | 10 |
月份 |
OutboundCount | Long | 65 |
呼出接通次数 |
OutboundDurationByMinute | Long | 3390 |
呼出通话时长/分钟 |
Year | Integer | 2018 |
年份 |
示例
请求示例
http(s)://[Endpoint]/?Action=GetCallMeasureSummaryReport
&IntervalType=Monthly
&Month=12
&Year=2019
&<公共请求参数>
正常返回示例
XML
格式
<GetCallMeasureSummaryReportResponse>
<NumberReports>
<PageNumber>1</PageNumber>
<TotalCount>22</TotalCount>
<PageSize>50</PageSize>
<List>
<NumberReport>
<Year>2018</Year>
<Number>073188888888</Number>
<InboundDurationByMinute>0</InboundDurationByMinute>
<OutboundCount>18</OutboundCount>
<InboundCount>0</InboundCount>
<OutboundDurationByMinute>2108</OutboundDurationByMinute>
<Day>31</Day>
<Month>10</Month>
</NumberReport>
<NumberReport>
<Year>2018</Year>
<Number>057188888888</Number>
<InboundDurationByMinute>0</InboundDurationByMinute>
<OutboundCount>0</OutboundCount>
<InboundCount>0</InboundCount>
<OutboundDurationByMinute>0</OutboundDurationByMinute>
<Day>31</Day>
<Month>10</Month>
</NumberReport>
</List>
</NumberReports>
<HttpStatusCode>200</HttpStatusCode>
<SummaryReport>
<Year>2018</Year>
<InboundDurationByMinute>47</InboundDurationByMinute>
<OutboundCount>65</OutboundCount>
<InboundCount>1</InboundCount>
<OutboundDurationByMinute>3390</OutboundDurationByMinute>
<Day>31</Day>
<Month>10</Month>
</SummaryReport>
<RequestId>BF268B34-09C2-43FD-BAC4-5D31EA633111</RequestId>
<Success>true</Success>
<Code>OK</Code>
</GetCallMeasureSummaryReportResponse>
JSON
格式
{
"NumberReports":{
"PageNumber":1,
"TotalCount":22,
"PageSize":50,
"List":{
"NumberReport":[
{
"Year":2018,
"Number":"073188888888",
"OutboundCount":18,
"InboundDurationByMinute":0,
"InboundCount":0,
"OutboundDurationByMinute":2108,
"Day":31,
"Month":10
},
{
"Year":2018,
"Number":"057188888888",
"OutboundCount":0,
"InboundDurationByMinute":0,
"InboundCount":0,
"OutboundDurationByMinute":0,
"Day":31,
"Month":10
}
]
}
},
"HttpStatusCode":200,
"SummaryReport":{
"Year":2018,
"OutboundCount":65,
"InboundDurationByMinute":47,
"InboundCount":1,
"OutboundDurationByMinute":3390,
"Day":31,
"Month":10
},
"RequestId":"BF268B34-09C2-43FD-BAC4-5D31EA633111",
"Success":true,
"Code":"OK"
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交