Gatcha Api Client Library for PHP

copyright
Copyright 2010 Netlog NV
link
http://www.gatcha.com/downloads/gatcha_api_clientlib_php
license
http://www.apache.org/licenses/LICENSE-2.0.html

About this Library

This php library helps in accessing the Gatcha API. More information on http://www.gatcha.com/download/gatcha_api_clientlib_php.

What's New?

See the "CHANGELOG" file for an overview of the history of this library

Prerequisites

Quick Start

This library comes with code samples for each available API method. To get started with the library, follow these steps:

  1. Obtain an application id (APP_ID) and application secret (APP_SECRET) to access the Gatcha API. (http://www.gatcha.com)
  2. Extract the source zip file into a working directory or get the sources form the subversion server.
  3. Edit the "configuration.inc.php" file. (See comments in that file for further instructions. Use "configuration.inc.example.php" as a reference.)
  4. Create a class that implements the interface Gatcha_Api_Tools_Debugging_ConsoleInterface (see "/tools/debugging/class.gatcha_api_tools_debugging_consoleinterface.php") and register it as Console Logging class by adding setting it in the "configuration.inc.php" file.
  5. Run the "gatcha.auth.getTicket" sample
    $ php samples/gatcha.auth.getticket.php
  6. You should see output that includes a string similar to the following:
    Your ticket is: pcer63bgv9rr13j7u0vorp0574
  7. The Gatcha_ApiClient is the main class of this library, this is the one you want to include in your project. From this class you can fetch a Gatcha, Container or Game API object.
  8. Experiment with the other samples. When ready, install the library in your php include path, and start using if with the Gatcha_ApiClient as an entry point.

Tips

Documentation

Comments, Questions or Feedback

If you have any comments, questions or feedback on this library, please get in touch: http://www.gatcha.com/about

Happy coding!