https://topminecraft.click/en/server/X-Best-Server-of-all-time/vote/Jackson
API to verify a vote
<?php $token = 'API_TOKEN'; // Token of your server $ip_address = $_SERVER['REMOTE_ADDR']; // User’s IP address $json = file_get_contents("https://api.topminecraft.click/vote/v1/$token/$ip_address"); $json_data = json_decode($json); if($json_data->has_vote == true) { echo 'You have successfully voted'; // You can use the following variables: $json_data->vote_at; // Corresponds to the date of the vote in timestamp format $json_data->next_vote; // Corresponds to the number of seconds remaining before the next vote $json_data->remaining_time; // Corresponds to the number of seconds remaining before the next vote $json_data->pseudo; // User’s username (if they specified their username when voting) } else { echo No vote within the last 90 minutes; }
{ "has_vote": true, "vote": 1666964421, "next_vote": 1666969821, "remaining_time": 4509, "pseudo": "Jackson" }