/*
 * Set the $server, $character, and $guild
 * variables with your information
 */
$server = "YOUR_SERVER_HERE";
$guild = "YOUR_GUILD_HERE";
$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