Skip to content

ServerAuth Web API

Flavius12 edited this page May 23, 2015 · 13 revisions

Basic Tutorial

In this tutorial you will check if a ServerAuth account exists 1. Create example.php file in your Web Server directory 2. Add ServerAuthWebAPI.php file in the same directory 3. Now add this code in example.php

<?php
//Include ServerAuth Web API
include 'ServerAuthWebAPI.php';
//Player to check
$player = "Steve";
//Initialize a ServerAuthWebAPI instance (put your ServerAuth MySQL data)
$api = new ServerAuthWebAPI("host", 3306, "username", "", "serverauth", "srvauth_");
var_dump($api->isPlayerRegistered($player));
?>

ServerAuth Web API Functions