Skip to content

Files

Latest commit

fe86457 · Feb 9, 2024

History

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

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 9, 2024
Feb 8, 2024
Oct 12, 2022
Jun 3, 2022
Feb 9, 2024
Oct 30, 2023
Jan 19, 2024
Feb 9, 2024
Jan 19, 2024

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