Skip to content

Files

Latest commit

25c219a · Jul 15, 2024

History

History
This branch is 200 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
Jul 15, 2024
Oct 30, 2023
Jan 19, 2024
Jul 15, 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');