查询同时访问者(CCU)

可以查询所选3个日期的各时间段同时访问者。

请求


GET https://dashboard-api.gamepot.ntruss.com/v1/api/project/{projectId}/user/statistics/ccu?oneDate={oneDate}&twoDate={twoDate}&threeDate={threeDate}

项目

类型

是否为必填项

描述

备注

projectId

String

O

GamePot SDK的projectId

oneDate

String

X

第一个要查询的日期

YYYY-MM-DD

twoDate

String

X

第二个要查询的日期

YYYY-MM-DD

threeDate

String

X

第三个要查询的日期

YYYY-MM-DD

(参考) 提供oneDate、twoDate、threeDate的查询条件,未提供时可查询当天及前2日的访问者。

请求头

报头名称

是否为必填项

描述

x-api-key

O

GamePot发放的认证密钥

accept-language

X

使用语言

响应


字段名称

类型

描述

status

Int

结果值\(1:成功\)

totalCount

Int

ccu查询结果(个)数

createdAt

String

统计时间

one

Int

(第一个日期的)相应时间同时访问者数

two

Int

(第二个日期的)相应时间同时访问者数

three

Int

(第三个日期的)相应时间同时访问者数

示例


请求示例

curl --request GET \
--url https://dashboard-api.gamepot.ntruss.com/v1/api/project/12a0f2ff-xxxx-xxxx-xxxx-9c13ef02f5fs/user/statistics/ccu?oneDate=2020-03-01&twoDate=2020-04-01&threeDate=2020-05-09
--header 'accept-language:ko' \
--header 'x-api-key:86dcgffae0641745432as02a8801ce5a5475f764fxxxxxxxxx'

响应示例

{
  "status":1,
  "result":{
    "totalCount":1440,
    "edges":[
      {
        "node":{
          "createdAt":"00:00",
          "one":0,
          "two":0,
          "three":0
        }
      },

        ...

      {
        "node":{
          "createdAt":"23:59",
          "one":0,
          "two":0,
          "three":null
        }
      }
    ]
  }
}

错误代码


发送Gamepot Open API请求时发生的通用错误代码。

参数

描述

status

错误代码\(1:成功,失败时请参考Error code\)

message

错误详细描述

错误代码

描述

-1

使用了仪表盘上没有的密钥时

-2

仪表盘密钥和报头的密钥不同时

-3

使用了仪表盘已删除的密钥时

-4

使用了仪表盘中作为未使用处理的密钥时

-5

密钥到期时

-6

没有项目ID时

{
    "status":-6,
    "message":"projectId was wrong."
}

发送查询同时访问者(CCU)API请求时发生的错误代码。

错误代码

描述

-11

threeDate值的格式有误时,仅可使用YYYY-MM-DD形式

-12

twoDate值的格式有误时,仅可使用YYYY-MM-DD形式

-13

oneDate值的格式有误时,仅可使用YYYY-MM-DD形式

Last updated