Today we are pleased to announce the release of our API!
All ServerMojo users will now see the API tab after logging in. Click that tab and you will see your API key which you will need to include in all calls to the api scripts. Also displayed there are various statistics on your usage of the api and the daily request quotas.
Full documentation and sample apps will be provided soon (its friday, docs can wait!
) but to get started you can have a look at the api test page here..
https://www.servermojo.com/api/test/
It’s fairly self explanatory – select the api script you want to call, for example ’setstatus_monitor’ which enables/disables a monitor, and the xml required will be displayed which already includes your id and api key. Simply fill in the other required info, in this case just the MonitorID, then press submit and the xml will be sent to the api and the function will be executed – note this test page does actually perform the actions for real so don’t go deleting your monitors by mistake!
The actual api script called is displayed on the top right corner of the test page and that is what you should submit the xml to from your own scripts.
Some of the api scripts have a field called ForeignKey – this is optional so you can safely ignore that. It is actually to allow you to use your own internal id’s when working with ServerMojo items. This and other things will be explained further in the docs soon.
Using the API you can now fully integrate ServerMojo with your systems – create and update monitors and sub-accounts, get stats including charts, pause a monitor (for example while running a scheduled task on your server) and more.
Have fun with it and if you have any questions or suggestions, give us a shout.
Tags: api, developers, featurefriday







[...] HOME SIGNUP FEATURES SUPPORT BLOG « Announcing the ServerMojo API [...]