- Guild
- Auth
- Player
- Server
- Sync
- Rcon
- backup
Get Player
GET
/api/player/{player_uid}
Player
请求参数
Path 参数
player_uid
string
必需
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/player/'
返回响应
🟢200OK
application/json
Body
exp
integer
可选
full_stomach
number
可选
hp
integer
可选
items
object (database.Items)
可选
CommonContainerId
array[object (database.Item) {3}]
可选
DropSlotContainerId
array[object (database.Item) {3}]
可选
EssentialContainerId
array[object (database.Item) {3}]
可选
FoodEquipContainerId
array[object (database.Item) {3}]
可选
PlayerEquipArmorContainerId
array[object (database.Item) {3}]
可选
WeaponLoadOutContainerId
array[object (database.Item) {3}]
可选
last_online
string
可选
level
integer
可选
max_hp
integer
可选
max_status_point
integer
可选
nickname
string
可选
pals
array[object (database.Pal) {15}]
可选
defense
integer
可选
exp
integer
可选
gender
string
可选
hp
integer
可选
is_boss
boolean
可选
is_lucky
boolean
可选
is_tower
boolean
可选
level
integer
可选
max_hp
integer
可选
melee
integer
可选
ranged
integer
可选
rank
integer
可选
skills
array[string]
可选
type
string
可选
workspeed
integer
可选
player_uid
string
可选
save_last_online
string
可选
shield_hp
integer
可选
shield_max_hp
integer
可选
status_point
object
可选
额外字段
integer
可选
steam_id
string
可选
示例
{
"exp": 0,
"full_stomach": 0,
"hp": 0,
"items": {
"CommonContainerId": [
{
"ItemId": "string",
"SlotIndex": 0,
"StackCount": 0
}
],
"DropSlotContainerId": [
{
"ItemId": "string",
"SlotIndex": 0,
"StackCount": 0
}
],
"EssentialContainerId": [
{
"ItemId": "string",
"SlotIndex": 0,
"StackCount": 0
}
],
"FoodEquipContainerId": [
{
"ItemId": "string",
"SlotIndex": 0,
"StackCount": 0
}
],
"PlayerEquipArmorContainerId": [
{
"ItemId": "string",
"SlotIndex": 0,
"StackCount": 0
}
],
"WeaponLoadOutContainerId": [
{
"ItemId": "string",
"SlotIndex": 0,
"StackCount": 0
}
]
},
"last_online": "string",
"level": 0,
"max_hp": 0,
"max_status_point": 0,
"nickname": "string",
"pals": [
{
"defense": 0,
"exp": 0,
"gender": "string",
"hp": 0,
"is_boss": true,
"is_lucky": true,
"is_tower": true,
"level": 0,
"max_hp": 0,
"melee": 0,
"ranged": 0,
"rank": 0,
"skills": [
"string"
],
"type": "string",
"workspeed": 0
}
],
"player_uid": "string",
"save_last_online": "string",
"shield_hp": 0,
"shield_max_hp": 0,
"status_point": {
"property1": 0,
"property2": 0
},
"steam_id": "string"
}
🟠400Bad Request
🟠404Not Found
修改于 2024-03-06 17:03:40