Skillnad mellan versioner av "TurfAPI V2"
Drassen (Diskussion | bidrag) (Skapade sidan med '== Usage == http://api.turfgame.com/v2 Will take you to a page asking you to be more specific. http://api.turfgame.com/v2/rss Fetches an RSS-feed containing the 10 latest takeov…') |
Drassen (Diskussion | bidrag) (→Usage) |
||
Rad 2: | Rad 2: | ||
http://api.turfgame.com/v2 | http://api.turfgame.com/v2 | ||
Will take you to a page asking you to be more specific. | Will take you to a page asking you to be more specific. | ||
+ | |||
http://api.turfgame.com/v2/rss | http://api.turfgame.com/v2/rss | ||
Fetches an RSS-feed containing the 10 latest takeovers in the game. | Fetches an RSS-feed containing the 10 latest takeovers in the game. | ||
+ | |||
+ | http://api.turfgame.com/v2/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/v2/rss/stockholm/?antal=45 | ||
+ | the GET-variable "antal" lets you choose the number of takeovers to be returned. maximum 100. |
Versionen från 25 januari 2013 kl. 13.17
Usage
http://api.turfgame.com/v2 Will take you to a page asking you to be more specific.
http://api.turfgame.com/v2/rss
Fetches an RSS-feed containing the 10 latest takeovers in the game.
http://api.turfgame.com/v2/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/v2/rss/stockholm/?antal=45 the GET-variable "antal" lets you choose the number of takeovers to be returned. maximum 100.