The Player resource

Players represent registered players on GGZ. They can have different privilege levels, for example normal players, hosts and administrators, and they can be bots (chat bots and game AI players). Guest players, however, will not appear in the database. For registered players, lists of buddies and ignored players can be stored.

/players (GET)

GET: List all players. The format is:
<players>
<player name="$playername"/>
</players>

/players/$playername (GET, POST, PUT, DELETE)

GET: List a player. The format is:
<player name="$playername">
<email>$emailaddress</email>
<realname>$realname</realname>
<photo>$photourl</photo>
</player>

POST: Create a player. The format is like the one for GET, with the addition of:
<password>$password</password>

PUT: Update a player. The format is like the one for POST. This operation needs authentication: HTTP username is $playername, HTTP password is the old $password.

DELETE: Remove a player. This operation needs authentication: HTTP username is $playername, HTTP password is $password.

/players/$playername/buddies/$buddyname (POST, DELETE) /players/$playername/ignored/$buddyname (POST, DELETE)

POST: Add a player to the list friends or ignored players. The format is:
<player name="$playername"/>

DELETE: Remove a player. Both POST and DELETE operations needs authentication: HTTP username is $playername, HTTP password is $password.