node-gitbook-api

Node client library for the GitBook API

3 years after

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', { ... })

Related Repositories

gitbook

gitbook

...

TimLiu-iOS

TimLiu-iOS

iOS开发常用三方库、插件、知名博客等等 ...

hydra

hydra

OAuth 2.0 server with OpenID Connect support for API security - cloud native, se ...

hydra

hydra

OAuth 2.0 server with OpenID Connect support for API security - cloud native, se ...

fetool

fetool

大前端的瑞士军刀,只记录有用的 ...