Skip to content

Files

Latest commit

7bf2b7d · Dec 21, 2024

History

History
This branch is 55 commits behind GitbookIO/integrations:main.

api

@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');