License
You need to use the following HTTP header:
"Authorization": "Cat ${player.id} ${player.token}"
Otherwise, most of the responses will be rejected.
Get ${player.id}
To obtain your player ID, enter the command player <your name>
in the CatPalm Discord system.
After the system returns your name, you will see a #
symbol followed by a number.
This number is your player.id.
※ For example, if you enter the command player xuancat0208
and the system returns xuancat0208#1
, then the player.id for xuancat0208
is 1
.
Get ${player.token}
To obtain a token, enter the command /token create <permission list...>
in the game. You will receive a 40-character hexadecimal string consisting of characters 0
through F
.
The following two strings are identical because they are not case-sensitive:
33052CD2710DEA8914201B6BBAB9091AB8BCEFC0
33052cd2710dea8914201b6bbab9091ab8bcefc0
※ Additional permissions may be required for certain endpoints.
List of permissions
group_message_put
group_message_gateway
land_change_permission
player_online_location
player_message_put
player_message_gateway
server_message_put
icon_get
icon_put
Test whether the permissions provided by the user are available using test permissions.
最后更新于