排名板用户分数登录API
Request
Method : POST
POST
url : https://gamepot.apigw.ntruss.com/gpapps/v2/leaderboardlogs
Header : 'content-type: application/json'
Header 'x-api-key: 86dcgffae0xxxxxxxxxxxxxx'
Header : 'x-project-id: ec8231b2-6b20-4ad1-xxxx-xxxxxxxxx'
data:
{
"leaderboardId" : "leaderboardId",
"userId" : "70045665-f64a-45c0-xxxx-xxxxxxxxx",
"score": 10,
"subscore": 0,
"metadata": "{\"key\":\"value\"}"
}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
score
Integer
X
分数
subscore
Integer
X
分项分数(非必需)
metadata
String
X
附加信息
Response
成功
Attribute
Type
Description
status
Int
结果值(-1 失败)
message
String
错误消息
leaderboardlog.project_id
String
项目ID
leaderboardlog.id
String
输入ID
leaderboardlog.user_id
String
用户ID
leaderboardlog.score
Int
分数
leaderboardlog.subscore
Int
分项分数
leaderboardlog.metadata
Int
用户自定义数据
leaderboardlog.expiredAt
String
到期日
失败
Attribute
Type
Description
code
Int
结果值(1:成功,失败时请参考Error code)
error
String
错误内容
Last updated