0.3.4 • Published 7 years ago
@lewisf/speedcurve v0.3.4
node-speedcurve
SpeedCurve API thin wrapper.
Install
npm install speedcurve
Usage
const SpeedCurve = require('speedcurve');
let speedcurve = new SpeedCurve([SpeedCurve API key]);
speedcurve.getSites().then(json => {
console.log(json);
});
SpeedCurve API key is available on Teams section at Admin page.
API
getSites(format, days)
Retrieves all sites and monitored URL’s for an account/team and the median tests for a site across all templates/URL’s and regions.
getUrls(urlId, browser, days)
Retrieves all the metadata for tests of a specific monitored URL.
getTest(testId)
Retrieves all the details available for a specific test.
getNotes()
Gets all the notes for the main site in a users account.
getLatestDeploy()
Gets details and status of testing for the latest deployment.
getDeploy(deployId)
Get the details for a particular deployment.