Skip to content

Account endpoint

Daniel López Guimaraes edited this page Aug 21, 2023 · 5 revisions

Methods

POST account/save

This methods saves the current Pou and game state to the server.

Parameters

Field Notes
c PouHash(payload + unn_session)

Payload

Type Field Notes
string state The current game state of the client's account.
string minInfo The current Pou state of the client's account.

Response

Type Field Notes
bool success If the request has been successful.
array<Notification> unclaimedNotifications Optional. Unclaimed awards.

POST account/logout

This methods logs off the current session and sets the session cookie unn_session to null.

Parameters

This method has no parameters.

Response

Type Field Notes
bool success If the request has been successful.

POST account/delete

This methods deletes the Pou account of the current session and logs off the client from the server.

Parameters

Field Notes
c PouHash(unn_session)

Response

Type Field Notes
bool success If the request has been successful.

GET account/info

Parameters

This method has no parameters.

Response

Type Field Notes
bool ok If the request has been successful.
string i Numeric account ID.
string e Email address of the account.
bool hP If the account has a password.
string n Account nickname.
string t Unknown purpose. Looks like a remnant of minInfo.
string l Unknown purpose.
string nF Number of favorites of the account.
string nL Number of likers of the account.
array<Notification> unclaimedNotifications Optional. Unclaimed awards.

POST account/change_nickname

This methods chenges the Pou nickname of the client's account.

Parameters

Field Notes
n New nickname.

Response

Type Field Notes
bool success If the request has been successful.

POST account/change_email

This methods chenges the email address of the client's account.

Parameters

Field Notes
e New email address.

Response

Type Field Notes
bool success If the request has been successful.

POST account/check_password

This methods verifies if the given password matches with the password of the client's account.

Parameters

Field Notes
p MD5 hash of the password.

Response

Type Field Notes
bool ok If the password is correct.

POST account/change_password

This methods changes the password of the client's account.

Parameters

Field Notes
o MD5 hash of the old password.
n MD5 hash of the new password.

Response

Type Field Notes
bool success If the request has been successful.

POST account/scores

This methods serves an unknown purpose, as when the request succeeds, the client deletes all the scores locally.

Parameters

Field Notes
c PouHash(payload + unn_session)

Payload

Type Field Notes
array<Score> scores The account scores.

Response

Type Field Notes
bool success If the request has been successful.

Objects

Score

This object stores the a score of the client's account.

Type Field Notes
int gI Game ID.
int s Score.