Get all Tests connected to your StatusCake account.
var StatusCake = require('machinepack-statuscake');
// Get all Tests connected to your StatusCake account.
StatusCake.getTests({
statusCakeUser: 'mcavoy',
apiKey: 'phae6aesa5ohgh1vov7aeM7Kaec2eeca',
}).exec({
// An unexpected error occurred.
error: function (err) {
},
// Invalid or unprovided API key or username. All calls must have a valid StatusCake API key and username.
wrongOrNotUser: function () {
},
// OK.
success: function (result) {
},
});
The user ID of your StatusCake account,
'mcavoy'
Your StatusCake API key.
'phae6aesa5ohgh1vov7aeM7Kaec2eeca'
An unexpected error occurred.
Invalid or unprovided API key or username. All calls must have a valid StatusCake API key and username.
OK.
[ { TestID: 378573,
Paused: false,
TestType: 'HTTP',
WebsiteName: 'node-statuscake test',
ContactGroup: null,
ContactID: 0,
Public: 0,
Status: 'Up',
NormalisedResponse: 0,
Uptime: 100 } ]