I think, it's a good idea, to implement an developers API. I hope this has not been proposed so far.
Developer can use this, to programm plugins or web-interfaces, based on the Glizer-Database. And of course I have some examples:
User-API
Code:
glizer.de/api/?user=maxikg
returns something like this (if you are an fan of JSON):
Code:
{
username: "maxikg",
online: "1341354840",
logins: 61,
destroyed: 30842,
placed: 24028
}
The username is an String, the online-time is an string, which contains the UNIX-Timestamp, the other data are Integers.
User-API with Block-Stats
Code:
glizer.de/api/?user=maxikg&blocktype=dirt
returns something like this:
Code:
{
placed: 820,
destroyed: 1649
}
More API-Requests
- Server-Status (uptime, rating, online, et cetera)
- Search-Query (e.g. which servers are open for all)
Prevents Flooding-Attacks
To prevent flooding-attacks, you can introduce an simple developer-key (like bitly.com - simpler than facebook or twitter). If you have performance-problems you can see, how many querys a developer does with his key.
The key can be a part of the URL (like &key=100320458323).
Thanks for your time. I hope my examples help to implements an API. And sorry for my bad english. I am an german english-noob :huh:
Greets,
maxikg