Skip to content

Site endpoint

Daniel López Guimaraes edited this page Apr 30, 2023 · 8 revisions

Methods

POST site/check_email

This method checks if the provided email address is registered on the server. If the email is not registered, the server returns a captcha for registration.

Parameters

Field Notes
e The email address to check.

Response

Type Field Notes
bool registered If the email address is registered on the server.
string capId Optional. The captcha ID to validate.
int capLen Optional. The number of characters the captcha has.
string capImg Optional. The base64-encoded PNG captcha to validate.
bool sentNewPassword Optional. Unknown purpose.

POST site/reset_password

This method sends a new password to the email address of the provided account.

Parameters

Field Notes
e The email address of the account.

Response

Type Field Notes
bool aws Unknown purpose.
bool success If the new password has been sent to the email address.

GET site/top_likes

This method returns a ranking of the 20 most liked accounts on the server.

Parameters

This method has no parameters.

Response

Type Field Notes
array<UserLikeInfo> items A ranking of the most liked accounts.
bool ok If the request has been successful.

POST site/register

This method creates a new account with the provided email address if the captcha is valid. If the request is successful, the response sets a session cookie unn_session for handling the session.

Parameters

Field Notes
e The email address of the account.
cI The captcha ID from site/check_email.
cA The captcha answer.

Response

Type Field Notes
bool success If the registration has been successful.
string nickname The account nickname. This entry is unused.
int i The account ID.
string n The account nickname.

POST site/login

This method tries to login the client with the provided email address and password. If the request is successful, the response sets a session cookie unn_session for handling the session.

Parameters

Field Notes
e The email address of the account.
p The MD5 hash of the password.

Response

Type Field Notes
int i The account ID.
string n The account nickname.
string t Unknown purpose. Looks like a remnant of minI.
bool hP Unknown purpose.
string nF The number of favorites of the account.
string nL The number of likers of the account.
string state An object of the current save state of the account as a string.
int version The version the last save was made.
int revision The revision the last save was made.
bool success If the login has been successful.

Objects

UserLikeInfo

This object holds information about the user's relationship with the client's account and the number of likes it has.

Type Field Notes
string i The numeric ID of the user.
string n The user nickname.
string minI An object holding the Pou data of the user as a string.
string l Unknown purpose.
string nL The number of likes the user has.
int iL A bool telling if the client's account likes the user as an integer.
int lM A bool telling if the user likes the client's account as an integer.