Edits history of script submission #352 for ' Retrieve Block (notion)'

  • deno
    One script reply has been approved by the moderators
    Ap­pro­ved
    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 hugo697 388 days ago

  • deno
    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 1020 days ago

  • deno
    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 1024 days ago

  • deno
    import { Resource } from "https://deno.land/x/[email protected]/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 1131 days ago