AO API – Connect to AO via custom code…
An Aevum Obscurum Application Programming Interface (AO API) has been implemented to allow to connect to Aevum Obscurum via your own custom code. Create your very own AO player information service. Game management functionality allows creating league games. Wanna create and manage your league for other players to join? If your answer is yes, your dream might just have become true!
The AO API provides the following services:
- Get information about players
- Get information about clans
- Get rankings
- Get game infos (standings, time to the next turn…)
- Create & Manage League Games
A PHP code library package has been provided for your convenience. If you know PHP, the code is quite simple: (1) include “aocon-1.0.0.inc.php” and (2) use it to connect to the AO DB. Download the PHP code library package below. Code sample:
<?php require_once('aocon-1.0.0.inc.php'); $aocon = new AOCon(); $row = $aocon->getPlayerInfo(10001); if ($row == NULL) { printErrors($aocon->getErrors()); } else { printRow($row); } ?>
PHP Connection Demo (LIVE!):
http://www.aevumobscurum.com/original/aoapi/aocon-demo.php
PHP Download:
http://www.aevumobscurum.com/original/aoapi/aoapi-1.0.0.zip
Documentation:
http://www.multiplayerhub.com/nexus/index.php?n=RoyalAO.GameAPI