Skip to content

Files

Latest commit

9121742 · Nov 21, 2023

History

History
This branch is 1 commit ahead of, 404 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');