API integrace

Základní informace

GET https://api.minecraftservery.eu/info?id=ID_SERVERU

{
	"review_count": 5,
	"rating": "4.3",
	"last_review_name": "4dice_xd",
	"last_review_rate": 4,
	"votes": 7,
	"last_vote": "Dotteex"
}

Seznam hlasujících podle počtu hlasů (Top hlasující)

GET https://api.minecraftservery.eu/voters?id=ID_SERVERU&limit=POCET

{
	"top_voters":[
		{
			"nickname": "Dotteex",
			"votes": 4
		},
		{
			"nickname": "xNistic",
			"votes": 3
		}
	]
}

Hlasy hráče

GET https://api.minecraftservery.eu/player?id=ID_SERVERU&nickname=USERNAME

{
	"nickname": "Dotteex",
	"next_vote": "2021-04-17 16:45:07",
	"next_vote_timestamp": 1618670707,
	"vote_count": 3,
	"votes":[
		{
			"nickname": "Dotteex",
			"datetime": "2021-03-20 08:53:42",
			"timestamp": 1616226822
		},
		{
			"nickname": "Dotteex",
			"datetime": "2021-03-24 06:16:00",
			"timestamp": 1616562960
		},
		{
			"nickname": "Dotteex",
			"datetime": "2021-03-24 08:50:42",
			"timestamp": 1616572242
		}
	]
}

Seznam hlasů

GET https://api.minecraftservery.eu/voters?id=ID_SERVERU

{
	"data":[
		{
			"nickname": "Dotteex",
			"datetime": "2021-04-09 21:26:11",
			"timestamp": 1617996371
		},
		{
			"nickname": "Dotteex",
			"datetime": "2021-04-10 00:33:12",
			"timestamp": 1618007592
		},
		{
			"nickname": "Dotteex",
			"datetime": "2021-04-10 07:42:21",
			"timestamp": 1618033341
		}
	],
	"votes":3
}