Documentation API
English
The player votes on our platform and, at the end of the vote, is redirected to your website thanks to a parameter in our URL. You must first install our Vote API.
GET parameter “callback”Automatic redirectionYour website domain only
The redirection address must be on the domain of the website set for your game server (Or one of its subdomains), otherwise the player is not redirected.
Voting URL
With redirection after the vote
Add the callback parameter to your server page address or to your voting URL:
https://beta.top-metin2.org/game/{id}-{name}/?callback={url}
https://beta.top-metin2.org/in/{id}-{name}/{token}/?callback={url}
- {id} ID of your game server, for example
42 - {name} server name in the address of its page, for example
my-server - {token} your player's token (Vote Token API)
- {url} redirection address on your website, for example
https://my-site.com/thanks.php
PHP example
Voting links with redirection
<a href="https://beta.top-metin2.org/game/3-core-top/?callback=https://beta.top-metin2.org/test.php" title="Vote on Top Metin2">Vote on Top Metin2</a>
<a href="https://beta.top-metin2.org/in/3-core-top/<?= $playerid ?>/?callback=https://beta.top-metin2.org/test.php" title="Vote on Top Metin2">Vote on Top Metin2</a>