コード例 #1
0
$character = "YOUR_CHARACTER_HERE";
//Creates the RosterAPI Object.
$api = new RosterAPI($server, $character, $guild);
/*
 * Guild specific information, returns an associative array with
 * guild names and ranks. If you want only guild names, change 
 * (true) to (false) and a normal array will be returned. 
 */
//to filter by level, change getGuildMembers(true) to getGuildMembers(true, LEVEL_HERE)
print_r($api->getGuildMembers(true));
print_r($api->getGuildPerks());
print_r($api->getTopWeeklyContributers());
/*
 * Character specific information
 */
echo $api->getPower() . '   ';
echo $api->getClass() . '   ';
echo $api->getRace() . '   ';
echo $api->getAchievementPoints() . '   ';
echo $api->getHealth() . '   ';
echo $api->getLevel() . '   ';
echo $api->getItemLevel() . '   ';
echo $api->getGender() . '   ';
//For a complete list of Stat possibilities,
//please see the getStat function comments
//in RosterAPI.php
$s = $api->getStat("spellhaste");
echo $s["name"] . '   ';
echo $s["value"] . '   ';
print_r($api->getProfessions());
print_r($api->getTalents());