A PHP client for the unpublished API for Neptune's Pride II: Triton (https://np.ironhelmet.com/)
require "phpTriton/client.php";
$client = new TritonClient($alias, $password);
if($client->authenticate()){
$game = $client->GetGame($game_id);
$universe = $game->GetFullUniverse();
}
authenticate()
- authenticates the player credentials, returntrue
on successGetGame($game_id)
- returnsTritonGame
objectGetServer()
- returnsTritonServer
object
All methods return decoded JSON arrays.
GetPlayer()
- returns the player informationGetOpenGames()
- returns the open game information
All methods return decoded JSON arrays.
GetFullUniverse()
- returns game universe informationGetIntel()
- returns intel statisticsGetUnreadCount()
- returns unread message countsGetPlayerAchievements()
- returns game players achievement informationGetDiplomacyMessages($count, $offset = 0)
- returns diplomacy messagesGetEventMessages($count, $offset = 0)
- returns event messages