操作和管理 Experience Service > 操作 Experience Service > 获取 Experience Service 数据 > 获取注册用户计数
  
获取注册用户计数
使用以下 Experience Service 端点检索指定时间段内访问 Experience Service 的注册用户数,其中 <es-protocol><es-host>es-port> 替换为 Experience Service 部署的相应值。此外,<start-date><end-date> 必须是符合 ISO 8601 标准的日期字符串:
<es-protocol>://<es-host>:<es-port>/ExperienceService/compliance/users?startDate=<start-date>&endDate=<end-date>
例如,要检索在 2018 年 12 月 12 日 3:30 PM UTC 到 2018 年 12 月 14 日 5:00 PM UTC 之间访问 Experience Service 的注册用户,请在标准 Web 浏览器中输入如下所示的 URL:
http://es.example.com:8448/ExperienceService/compliance/users?startDate=2018-12-12T15:30:00Z&endDate=2018-12-14T17:00:00Z
API 返回带有字段 viewsbillables 的 JSON 对象。
registeredUsers - 访问 Experience Service 的注册用户数
例如:
{
"registeredUsers":137
}
startDateendDate 参数是可选的。省略 startDate 则返回在指定 endDate 之前访问 Experience Service 的注册用户数。省略 endDate 则返回自指定 startDate 以来访问 Experience Service 的注册用户数。省略这两个日期将返回访问过 Experience Service 的注册用户数。