调用ListCorpMetrics获取指定标签对应的数据。

目前支持的标签包括:

tag_corp_day_personnumber

每天人流量

tag_corp_hour_personnumber

每小时人流量

tag_corp_day_personvisits_distribution

每天人次分布

tag_corp_hour_personvisits_distribution

每小时人次分布

tag_corp_day_gender_distribution

每天性别分布

tag_corp_day_age_distribution

每天年龄分布

tag_corp_day_usergroup_personcount

每天按用户分组人流统计

tag_corp_hour_usergroup_personcount

每小时按用户分组人流统计

调试

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

请求参数

名称 类型 是否必选 示例值 描述
Action String ListCorpMetrics

系统规定参数。取值:ListCorpMetrics。

CorpId String 2611319643905724169

用户ID。

EndTime String 2020-08-11 00:00:00

结束时间。

PageNumber String 1

分页数。

PageSize String 10

分页大小。

StartTime String 2020-08-10 00:00:00

开始时间。

TagCode String tag_corp_day_personnumber

tag_corp_day_personnumber

每天人流量

tag_corp_hour_personnumber

每小时人流量

tag_corp_day_personvisits_distribution

每天人次分布

tag_corp_hour_personvisits_distribution

每小时人次分布

tag_corp_day_gender_distribution

每天性别分布

tag_corp_day_age_distribution

每天年龄分布

tag_corp_day_usergroup_personcount

每天按用户分组人流统计

tag_corp_hour_usergroup_personcount

每小时按用户分组人流统计

UserGroupList String 1122

客户分组。

DeviceGroupList String 33011012011327999991

设备分组。

DeviceIdList String 33011012011327999991

设备ID。

返回数据

名称 类型 示例值 描述
Code String 200

返回结果编码。

Data Array of Data

返回结果数据。

CorpId String 2611319643905724169

用户ID。

DateId String 2020-08-10

时间。

DeviceGroupId String -1

设备分组。

DeviceId String -1

设备ID。

PersonId String -1

人员ID。

TagCode String tag_corp_day_personnumber

标签。

TagMetrics String 28

查询结果值。

TagValue String -1

查询结果值范围。

UserGroupId String -1

用户分组ID。

Message String Success

返回消息。

PageNumber Integer 1

分页值。

PageSize Integer 10

分页大小。

RequestId String 0a3c22cd-e329-431b-ba81-dce1379be498

请求ID。

Success String success

是否成功。

TotalCount Integer 100

总分页数。

示例

请求示例

http(s)://[Endpoint]/?Action=ListCorpMetrics
&CorpId=2611319643905724169
&EndTime=2020-08-11 00:00:00
&PageNumber=1
&PageSize=10
&StartTime=2020-08-10 00:00:00
&SubId=2611319643905724169
&TagCode=tag_corp_day_personnumber
&<公共请求参数>

正常返回示例

XML 格式

<TotalCount>100</TotalCount>
<Message>Success</Message>
<PageSize>10</PageSize>
<RequestId>0a3c22cd-e329-431b-ba81-dce1379be498</RequestId>
<PageNumber>1</PageNumber>
<Data>
    <CorpId>2611319643905724169</CorpId>
    <PersonId>-1</PersonId>
    <DeviceGroupId>-1</DeviceGroupId>
    <DeviceId>-1</DeviceId>
    <UserGroupId>-1</UserGroupId>
    <TagMetrics>28</TagMetrics>
    <TagCode>tag_corp_day_personnumber</TagCode>
    <TagValue>-1</TagValue>
    <DateId>2020-08-10</DateId>
</Data>
<Code>200</Code>
<Success>success</Success>

JSON 格式

{"TotalCount":"100","Message":"Success","PageSize":"10","RequestId":"0a3c22cd-e329-431b-ba81-dce1379be498","PageNumber":"1","Data":[{"CorpId":"2611319643905724169","PersonId":"-1","DeviceGroupId":"-1","DeviceId":"-1","UserGroupId":"-1","TagMetrics":"28","TagCode":"tag_corp_day_personnumber","TagValue":"-1","DateId":"2020-08-10"}],"Code":"200","Success":"success"}

错误码

HttpCode 错误码 错误信息 描述
401 InvalidCorpId The specified CorpId is invalid. ISV要操作的组织不存在.

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