Ändringar

TurfAPI V3

281 byte lades till, 1 mars 2013 kl. 18.13
ingen redigeringssammanfattning
== Usage ==
http://api.turfgame.com/v2v3
Will take you to a page asking you to be more specific.
'''RSS'''
http://api.turfgame.com/v2v3/rss
Fetches an RSS-feed containing the 10 latest takeovers in the game.
http://api.turfgame.com/v2v3/rss/stockholm/göteborg/skåne
Adding regions to the url will make the rss only show takeovers from those regions.
http://api.turfgame.com/v2v3/rss/stockholm/?antal=45
the GET-variable "antal" lets you choose the number of takeovers to be returned. maximum 100.
'''User'''
http://api.turfgame.com/v2v3/user/tomtebloss/drassen
Lets you fetch information about selected users.
'''Zones'''
http://api.turfgame.com/v2v3/zones
Will return all zones from the game, including pivot points. This action is demanding and is therefore subject to longer caching intervals(2 hours).
http://api.turfgame.com/v2v3/zones/plattan/id:3002/
Will return only selected zones, but with more information than the example above. You may use either the id or the name of the zone.
blocked_seconds="238"/>
</turf>
</pre>
 
'''Stats'''
 
http://api.turfgame.com/v3/stats
Will return a set of updated stats from the game.
Example return:
 
<pre>
<?xml version="1.0" encoding="utf-8"?>
<turf zonestakentoday="3737" zonestakenyesterday="5458" zonestaken="2234384" usersthisround="1686" users="35690"/>
</pre>
[[Kategori:Tredjepartsutveckling]]
42
redigeringar