0.0.4 • Published 5 years ago

statuscakejs v0.0.4

Weekly downloads
17
License
MIT
Repository
github
Last release
5 years ago

A StatusCake API Library

Functions and type definitions to make it easier to work with the StatusCake API.

Example of Use

import { StatusCake, getTests, Test } from 'statuscakejs'

const statusCake = new StatusCake(<username>, <API key>)

getTests(statusCake)
.then((data: Array<Test>) => console.log(JSON.stringify(data)))
// [{"TestID":3208271,"Paused":false,"TestType":"HTTP", ...

See src/demo.ts for more examples.

See the StatusCake API Documentation for details about fields.

Installation

npm i statuscakejs