Toolserver:User:Soxred93/API

api.php is a Toolserver tool for providing real-time data about the Toolserver. It provides data in 5 formats.

All urls are in the format: http://toolserver.org/~soxred93/api.php?action=ACTION&format=FORMAT

This tool utilizes SPYC, in order to generate YAML. It is licensed under the MIT license.

format=php
Provides data in PHP's serialize format.

format=xml
Provides data in XML format.

format=json
Provides data in JSON format.

format=yaml
Provides data in YAML format.

format=txt
Provides data in PHP's print_r format.

action=replag
Tells the current replag for 5 servers: s1, s1-c, s2, s3, s3-c.

action=status
Tells the status of 4 servers: s1, s2, s3, sql. Options are OK, DOWN

action=size
Tells the current disk space for 1 server: hemlock:/home