Ruby API Development with WeeWar
Posted by BM5k on February 24, 2008 at 07:32 PM
As a ruby newb, I thought that I’d document my first trek into API development.
Lately, I’ve been quite taken to wasting hours in front of WeeWar, to the extend that it’s interfering with my normal goofing off. Among other things, WeeWar has a relatively simple API. An introduction can be found here.
There are only a few API accessible objects, Players, Games, All Players, and the HQ. Click on the preceding links for sample of the data returned by each.
These URLs are pretty straight forward. The key thing to realize is that while games are selected by numerical id, players are selected by name. (Names are NOT case sensitive, i.e. Bert is the same as BeRT.) Also, accessing your HQ requires both a user name and an API token. You can find your API token on your account page.
Comments
There are 0 comments on this post. Post yours →
Post a comment
Required fields in bold.