3.0.2 • Published 7 years ago

gitbook-api v3.0.2

Weekly downloads
63
License
Apache-2.0
Repository
github
Last release
7 years ago

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

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.1.3

8 years ago

2.1.2

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.0

8 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago