import { Client } from "npm:@notionhq/client";
/**
* Learn more at
* https://developers.notion.com/reference/retrieve-a-block
*/
type Notion = {
token: string;
};
export async function main(auth: Notion, block_id: string) {
const client = new Client({ auth: auth.token });
return await client.blocks.retrieve({ block_id });
}
Submitted by admin 460 days ago
import { Client } from "npm:@notionhq/client";
/**
* Learn more at
* https://developers.notion.com/reference/retrieve-a-block
*/
type Notion = {
token: string;
};
export async function main(
auth: Notion,
block_id: string,
) {
const client = new Client({ auth: auth.token });
return await client.blocks.retrieve({ block_id });
}
Submitted by admin 463 days ago
import { Resource } from "https://deno.land/x/windmill@v1.89.0/mod.ts";
import { Client } from "npm:@notionhq/client";
/**
* Learn more at
* https://developers.notion.com/reference/retrieve-a-block
*/
export async function main(
auth: Resource<"notion">,
block_id: string,
) {
const client = new Client({ auth: auth.token });
return await client.blocks.retrieve({ block_id });
}
Submitted by adam186 570 days ago