Wargaming Api
This package composer, allows to use more simply the wargaming API with a very simple and well documented object-oriented code for your IDE (integrated development environment).
- Get your application id here
- Initialise your application
Region | code |
---|---|
Russia | ru |
Europe | eu |
Asia | asia |
North America | na |
- Make request
$WarGaming = new WargamingApi($application_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", $region = "eu");
- Search player
$WarGaming->searchPlayers($search = "volca", $options = [
"limit" => 10,
"method" => "startswith",
"region" => "eu"
]);
- Search player(s) by id
$WarGaming->infoPlayersById($players_id = ["500080014", "514444123", "514444121"], $options = [
"region" => "eu"
]);
- Server info
$WarGaming->serverInfo($region = "eu");
- Search clans
$WarGaming->searchClans($search = "volca", $options = [
"limit" => 10,
"pagination" => "1",
"region" => "eu"
]);
- Search clans by id
$WarGaming->infoClansById($clans_id = ["500041879", "500034196"], $options = [
"region" => "eu"
]);
- Search clans of player(s) id
$WarGaming->playerClans($players_id = ["500450795", "503197062", "500435236"]);