Toolserver:User:Soxred93/API
This page was moved from the Toolserver wiki.
Toolserver has been replaced by Toolforge. As such, the instructions here may no longer work, but may still be of historical interest.
Please help by updating examples, links, template links, etc. If a page is still relevant, move it to a normal title and leave a redirect.
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.
Formats
editformat=php
editProvides data in PHP's serialize() format.
format=xml
editProvides data in XML format.
format=json
editProvides data in JSON format.
format=yaml
editProvides data in YAML format.
format=txt
editProvides data in 's print_r() format.
Actions
editaction=replag
editTells the current replag for 5 servers: s1, s1-c, s2, s3, s3-c.
action=status
editTells the status of 4 servers: s1, s2, s3, sql. Options are OK, DOWN
action=size
editTells the current disk space for 1 server: hemlock:/home