Player

https://catpalm.net/api/player/${player.id}/

Get player data

GET https://catpalm.net/api/player/${player.id}/data

Path Parameters

Name
Type
Description

player.id*

int

Headers

Name
Type
Description

Authorization*

str

{
    "id": 1,
    "uuid": "63c09d08-a16d-4923-88fc-91df490c9e3b",
    "name": "xuancat0208",
    "nick": "XUAN",
    "phone": true,
    "admin": true,
    "staff": true,
    "register": 1611722322000,
    "update": 1611229344000,
    "discord": 455305052416901100,
    "group": 1043834668207841332,
    "ban": {
        "maturity": 1676303999000,
        "reason": {
            "zh_tw": "測試中",
            "ja_jp": "テスト中...",
            "ko_kr": "테스트 중...",
            "en_us": "Testing..."
        }
    },
    "online": {
        "world": "5bce8385-5014-4f5d-84bc-395fa49f98e1",
        "x": -28381.43335310051,
        "y": 69.4,
        "z": 18663.27311898864,
        "yaw": -179.85,
        "pitch": 6.74951,
        "ping": 26,
        "mode": "creative",
        "lang": "zh_tw"
    }
}

Get skin for the face

GET https://catpalm.net/api/player/${player.id}/face/${random}

Path Parameters

Name
Type
Description

player.id*

int

random

str

Random String To avoid the CDN cache that does not show the latest skin

Get player information

GET https://catpalm.net/api/player/${player.id}/info

Path Parameters

Name
Type
Description

player.id*

int

Headers

Name
Type
Description

Authorization*

str

{
    "id": 1,
    "uuid": "63c09d08-a16d-4923-88fc-91df490c9e3b",
    "name": "xuancat0208",
    "nick": "XUAN",
    "phone": true
}

Send private message

PUT https://catpalm.net/api/player/${player.id}/message/${lang}

Speed limit 0.2 sec/time Receive messages regardless of whether the other party is online or not Requires player_message_put permission

Path Parameters

Name
Type
Description

player.id*

int

lang*

str

ja_jp/zh_tw/ko_kr/en_us

Headers

Name
Type
Description

Authorization*

str

最后更新于