gh-status-methods

1.0.0 • Public • Published

gh-status-methods

NPM version Build Status Coverage Status Dependency Status devDependency Status

Get all methods in the Github Status API

const ghStatusMethods = require('gh-status-methods');
 
ghStatusMethods().then(({status_url, messages_url, last_message_url, daily_summary}) => {
  status_url; //=> 'https://status.github.com/api/status.json'
  messages_url; //=> 'https://status.github.com/api/messages.json'
  last_message_url; //=> 'https://status.github.com/api/last-message.json'
  daily_summary; //=> 'https://status.github.com/api/daily-summary.json'
});

Installation

Use npm.

npm install gh-status-methods

API

const ghStatusMethods = require('gh-status-methods');

ghStatusMethods([options])

options: Object (Request options)
Return: Promise instance

It makes an API request to get all methods in the Github Status API, and returns a promise.

The promise will be fulfilled with a JSON object if successful, otherwise rejected with an error.

License

Copyright (c) 2016 Shinnosuke Watanabe

Licensed under the MIT License.

Package Sidebar

Install

npm i gh-status-methods

Weekly Downloads

4

Version

1.0.0

License

MIT

Last publish

Collaborators

  • shinnn