Ejemplo n.º 1
0
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
include './RosterAPI.php';
/*
 * 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() . '   ';