Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 352 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 352 Bytes

@gitbook/api

Javascript (Browser and Node) API client for the GitBook API.

Installation

npm install @gitbook/api

Usage

import { GitBookAPI } from '@gitbook/api';

const gitbook = new GitBookAPI({
    authToken: 'gb_abc,
});

const { data } = await gitbook..spaces.getSpaceById('abc');