Hey fellow coders,Warning: this SDK is in BETA. We may change and break things. If you don't want to have to stay tuned and change stuff, please wait for the final version of the SDK to be released. Hopefully it will be very soon.
We are releasing the Maniaplanet Web Services SDK for PHP. It lets you very easilly integrate API calls in your applications. It also comes with ManiaConnect support.
You can download the SDK here: http://code.google.com/p/maniaplanet-ws ... loads/list
- PHP 5.3 or newer
- CURL extension http://php.net/manual/en/book.curl.php
- JSON extension http://php.net/manual/en/book.json.php
- You must be able to make HTTPS requests on ws.maniaplanet.com
For those familiar with the TrackMania Web Services SDK, not much has changed:
Code: Select all
<?php require_once '/path/to/autoload.php'; $players = new \Maniaplanet\WebServices\Players('your_api_username', 'your_api_password'); $players->get('gouxim'); ?>
You are more than welcome to report bugs
You can post here, or even better, use the bug tracker on the projects' page http://code.google.com/p/maniaplanet-ws-sdk/issues/list
Work in progress
This is obviously a work in progress. Not all services are plugged on the API, and the SDK is not complete yet. However you can find in the /example folder in the SDK some examples for both the basic API and the ManiaConnect feature.