StatusCake.getTests()

Get all Tests connected to your StatusCake account.

Usage

Hover over inputs/exits for more info.

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) {

 

},

});

Inputs

statusCakeUser required

The user ID of your StatusCake account,

'mcavoy'
apiKey required

Your StatusCake API key.

'phae6aesa5ohgh1vov7aeM7Kaec2eeca'

Exits

error

An unexpected error occurred.

wrongOrNotUser

Invalid or unprovided API key or username. All calls must have a valid StatusCake API key and username.

success

OK.

[ { TestID: 378573,
    Paused: false,
    TestType: 'HTTP',
    WebsiteName: 'node-statuscake test',
    ContactGroup: null,
    ContactID: 0,
    Public: 0,
    Status: 'Up',
    NormalisedResponse: 0,
    Uptime: 100 } ]