Votes endpoints
Check the vote for a specific username
Request: GET /v1/votes/username/:username
parameters:
:username
: the username of the user to check the vote for, required.
Response:
200 OK
: the last vote for the user.
{
username: string; // the username of the user
canVote: boolean; // true if the user can vote, false if the user has already voted in the last 60 minutes
date?: Date; // the date of the last vote, UTC. Only present if user has already voted.
nextVote?: Date; // the date when the user can vote again, UTC. Only present if user has already voted.
}
401 Unauthorized
if your token is invalid.