Server Voting Page Query Args
https://findretros.com/servers/Example/vote
Query Arg | Description |
---|---|
?minimal=1 |
Minimal view. |
?return=1 |
This will ensure that when you send someone to your server's voting page, they will be redirected to your server's return_url . |
Legacy Server Vote Validation URL
https://findretros.com/legacy/validate?user={serverName}&ip={clientIpAddress}
Response | Description |
---|---|
2 |
The specified ip has voted for user (server) in the past 24 hours. |
3 |
The specified ip has not voted for user (server) in the past 24 hours. |
Vote Validator
https://github.com/FindRetros/Vote-Validator/
<?php
require_once 'findretros_config.php';
require_once 'findretros.php';
$findRetros = new FindRetros();
if($findRetros->hasClientVoted()) {
echo 'You have voted!';
}else{
// echo 'You have yet to vote!';
$findRetros->redirectClientToVote();
}