I've been hard at work updating and improving Zabcon and the Ruby API! The two latest features should make this tool much more useful to everyone.
I would also like to announce that a tarball is now available for download. This tarball will be updated periodically, and the revision number will change appropriately. The link is on the main page for Zabcon http://trac.red-tux.net
The two features are, Raw API calls and basic variables.
With the Raw API support it is possible to execute API calls for functions which have not yet been implemented in the API wrapper. This capability is available directly via Zabcon and the API library. There are also two varieties of Raw API calls, one where you provide the method and parameters (raw api) and one where you provide the full JSON call (raw json).
For example if you wish to use a raw call to show the current list of users you would issue the following in Zabcon:
This would be the equivilant of the zabcon command:
You can also make calls to Zabcon from the command line by piping your command to it, this is useful if you wish to use Zabcon inside a script. (I will be removing some of the extraneous text here soon).
example:
The exciting addition is user defined variables. It is possible to assign a commonly used statement to a variable and then refer to that variable. Variables are prefaced by a $ character. The help menu has more information about variables. I will be adding the ability to save variables soon.
I would also like to announce that a tarball is now available for download. This tarball will be updated periodically, and the revision number will change appropriately. The link is on the main page for Zabcon http://trac.red-tux.net
The two features are, Raw API calls and basic variables.
With the Raw API support it is possible to execute API calls for functions which have not yet been implemented in the API wrapper. This capability is available directly via Zabcon and the API library. There are also two varieties of Raw API calls, one where you provide the method and parameters (raw api) and one where you provide the full JSON call (raw json).
For example if you wish to use a raw call to show the current list of users you would issue the following in Zabcon:
Code:
raw api user.get extendoutput=true limit=100
Code:
get user show=all
example:
Code:
echo "raw api user.get output=extend filter=autologout limit=100" | ./zabcon -l
Comment