You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

gitbook-api

Package Overview
Dependencies
Maintainers
5
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

gitbook-api

API Client for GitBook.com (gitbook.com)

3.0.2
unpublished
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
5
Weekly downloads
 
Created
Source

gitbook-api

Build Status NPM version

Node and browser, javascript client for the GitBook.com API.

Installation

$ npm install gitbook-api --save

Usages

const GitBookAPI = require('gitbook-api');
const client = new GitBookAPI();

Or create an API client with an authentified user:

const client = new GitBookAPI({
    username: 'MyUsername',
    token: 'password or token'
});

Or using an OAuth token:

var client = new GitBookAPI({
    token: 'oauth token'
});

Then execute API requests:

client.get('book/you/yourbook')
.then((json) => {})
.catch(err => {})

client.post('book/you/yourbook/discussions/1/comments', { ... })

Keywords

gitbook

FAQs

Package last updated on 12 Feb 2017

Did you know?

Socket

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.

Install

Related posts