Skip to content

Files

Latest commit

721b38f · Aug 7, 2024

History

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

api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 9, 2024
Feb 8, 2024
Oct 12, 2022
Jun 3, 2022
Aug 7, 2024
Oct 30, 2023
Jan 19, 2024
Aug 7, 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');