Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
statuspage-api
Advanced tools
GET and POST for select StatusPage.io API elements.
npm install statuspage-api
var StatusPageAPI = require('statuspage-api');
// Or for local example:
// var StatusPageAPI = require('../../statuspage-api');
/*
* Initialize object
*/
var statuspage = new StatusPageAPI({
pageid: "<ADD YOUR OWN PAGE ID>",
apikey: "<ADD YOUR OWN API KEY>",
host: "api.statuspage.io", // Override the default host
port: 443, // Override the default port
// useragent: "statuspage-node", // Override the default useragent
debuglevel: "warn" // Set debug levele: debug, info, warn, error
});
/*
* Define callback to print API result
*/
var printAll = function(result) {
console.log("Status: ", result.status);
if (result.error != null) {
console.log("Error: ", result.error);
}
if (result.status == "success"){
console.log("Data: ", result.data);
}
}
/*
* GET page contents using printAll callback
*/
statuspage.get("pages", printAll);
/*
* POST a scheduled incident and print the result
*/
var args = {
"incident[name]": "Testing API components",
"incident[status]": "scheduled",
"incident[scheduled_for]": "2015-04-03T18:30:05+00:00",
"incident[scheduled_until]": "2015-04-03T18:35:05+00:00",
"incident[message]": "This is only a test.\n Really, it's only a test.",
"incident[scheduled_remind_prior]": "t",
"incident[scheduled_auto_in_progress]": "t",
"incident[scheduled_auto_completed]": "t",
"incident[impact_override]": "minor",
"incident[component_ids]": ["tblsw29xd923","tvb8cjnr022n"]
}
statuspage.post("incidents", args, printAll);
For more information see example
Accepts a subset of StatusPage.io collections or elements.
GET
pages
components
incidents
, incidents/unresolved
, incidents/scheduled
subscribers
POST:
incidents
subscribers
Read more about the statuspage.io API here
Heavily drawn from jammus's lastfm-node and DynectEmail-Node
FAQs
A wrapper for select statuspage.io API commands
The npm package statuspage-api receives a total of 0 weekly downloads. As such, statuspage-api popularity was classified as not popular.
We found that statuspage-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.