-
Notifications
You must be signed in to change notification settings - Fork 0
Account endpoint
- POST account/save
- POST account/logout
- POST account/delete
- GET account/info
- POST account/change_nickname
- POST account/change_email
- POST account/check_password
- POST account/change_password
- POST account/scores
This methods saves the current Pou and game state to the server.
Field | Notes |
---|---|
c | PouHash(payload + unn_session) |
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. |
Type | Field | Notes |
---|---|---|
bool | success | If the request has been successful. |
array<Notification> | unclaimedNotifications | Optional. Unclaimed awards. |
This methods logs off the current session and sets the session cookie unn_session
to null.
This method has no parameters.
Type | Field | Notes |
---|---|---|
bool | success | If the request has been successful. |
This methods deletes the Pou account of the current session and logs off the client from the server.
Field | Notes |
---|---|
c | PouHash(unn_session) |
Type | Field | Notes |
---|---|---|
bool | success | If the request has been successful. |
This method has no parameters.
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. |
This methods chenges the Pou nickname of the client's account.
Field | Notes |
---|---|
n | New nickname. |
Type | Field | Notes |
---|---|---|
bool | success | If the request has been successful. |
This methods chenges the email address of the client's account.
Field | Notes |
---|---|
e | New email address. |
Type | Field | Notes |
---|---|---|
bool | success | If the request has been successful. |
This methods verifies if the given password matches with the password of the client's account.
Field | Notes |
---|---|
p | MD5 hash of the password. |
Type | Field | Notes |
---|---|---|
bool | ok | If the password is correct. |
This methods changes the password of the client's account.
Field | Notes |
---|---|
o | MD5 hash of the old password. |
n | MD5 hash of the new password. |
Type | Field | Notes |
---|---|---|
bool | success | If the request has been successful. |
This methods serves an unknown purpose, as when the request succeeds, the client deletes all the scores locally.
Field | Notes |
---|---|
c | PouHash(payload + unn_session) |
Type | Field | Notes |
---|---|---|
array<Score> | scores | The account scores. |
Type | Field | Notes |
---|---|---|
bool | success | If the request has been successful. |
This object stores the a score of the client's account.
Type | Field | Notes |
---|---|---|
int | gI | Game ID. |
int | s | Score. |