Access weewar.com's XML API to retrieve data.
To use Weewar, simply import the module using the "use Weewar" statement. From there, you have several options for retrieving data. For example, to get information about all active players on weewar, you can use the "all_users" method. If you want to retrieve data for a single user, you can use the "user" method with the user's username as an argument.
Weewar also provides a lazy-loading option for retrieving data about a single user. Simply create a new Weewar::User object with the user's name as an argument, and the module will automatically load the data when you need it.
Similarly, to retrieve information about a game, you can use the "game" method with the game's ID as an argument. Weewar also provides a lazy-loading option for games, allowing you to create a new Weewar::Game object with the game's ID and retrieve the data when needed.
Finally, Weewar allows you to access the headquarters of a user with the "hq" method. Simply provide the user's username and API key as arguments, and the module will return a Weewar::HQ object with information about the user's headquarters.
Overall, Weewar is a powerful and flexible tool for interacting with the Weewar API. If you need to retrieve data from Weewar, the Weewar module is well worth checking out. For more information about the data you can retrieve from the API, see the Weewar::User, Weewar::Game, and Weewar::HQ classes.
Version 0.01: N/A