Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 716 Bytes

notion-client.notionapi.fetch.md

File metadata and controls

26 lines (17 loc) · 716 Bytes

Home > notion-client > NotionAPI > fetch

NotionAPI.fetch() method

Signature:

fetch<T>({ endpoint, body, gotOptions }: {
        endpoint: string;
        body: object;
        gotOptions?: OptionsOfJSONResponseBody;
    }): Promise<T>;

Parameters

Parameter Type Description
{ endpoint, body, gotOptions } { endpoint: string; body: object; gotOptions?: OptionsOfJSONResponseBody; }

Returns:

Promise<T>