De Java Game Tome | Online spelen en games downloaden

De Java Game Tome is de plek voor Java game developers om hun games te showen.
      Home | Login | Registreer | FAQ | Over ons
English Francais Dutch 日本語 Chinese Deutsch

API Overview & Purpose

The Java Game Tome Application Programming Interface (JGT API) allows connecting to the Java Game Tome and provides services such as game listings. Helper functions in the PHP programming language are provided.


Setup

1. Download the sources: JGT API 1.0.3 (Nov 14, 2008)

2. Copy the sources into your web directory (requires PHP support).

3. Run jgtcon-demo.php via your browser to verify correct installation.


Documentation

The following code sample outputs the total number of games for topic 1 and lists the names of the first and second game returned:
<?php
   require_once('jgtcon-1.0.3.inc.php');
   $jgtcon = new JGTCon();

   $games = $jgtcon->getGamesByTopic(1);
   echo 'Total Games: ' . $games->total . '<br>';
   echo 'Game 0: ' . $games->list[0]->title . '<br>';
   echo 'Game 1: ' . $games->list[1]->title . '<br>';
?>

Look at jgtcon-demo.php for a more detailed description on how to use the API.

 

Please visit this page for API updates.