用排名板查询用户分数的API

Request


GET
url : https://gamepot.apigw.ntruss.com/gpapps/v2/leaderboard
Header 'x-api-key: 86dcgffae0xxxxxxxxxxxxxx'
Header : 'x-project-id: ec8231b2-6b20-4ad1-xxxx-xxxxxxxxx'

Header

Type

Required

Description

X-API-KEY

String

O

GamePot发放的认证密钥

X-PROJECT-ID

String

O

仪表盘项目ID

Attribute

Type

Required

Description

leaderboardID

String

O

在仪表盘中生成的排名板固有ID

userid

String

O

用户ID

Response


成功

{
	"rank": 1,
	"leaderboard_id": "leaderboardID",
	"user_id": "8f372bf4-XXXX-XXXX-XXXX-XXXXXXXX",
	"project_id": "ec8231b2-6b20-4ad1-XXXX-XXXXXXXX",
	"score": 1,
	"prev_score": null,
	"subscore": 10,
	"metadata": "",
	"user_count": 2,
	"expiredAt": "2023-01-30T17:00:00+09:00",
	"updatedAt": "2023-01-30T11:55:37+09:00"
}

Attribute

Type

Description

status

Int

结果值(-1 失败)

message

String

错误消息

rank

Int

排名

project_id

String

项目ID

leaderboardId

String

在仪表盘中生成的排名板固有ID

user_id

String

用户ID

score

Int

分数

subscore

Int

分项分数

metadata

Int

用户自定义数据

updatedAt

String

更新日期

expiredAt

String

到期日

失败

Attribute

Type

Description

status

Int

结果值(失败时请参考Error code)

message

String

错误内容

Last updated