Creates an embed block.
A string representing the URL to be embedded, or an options object.
The URL to be embedded.
An embed block object compatible with Notion's API.
// Use with a stringconst simpleEmbed = block.embed.createBlock("https://www.youtube.com/watch?v=ec5m6t77eYM");// Use with options objectconst complexEmbed = block.embed.createBlock({ url: "https://www.youtube.com/watch?v=ec5m6t77eYM"}); Copy
// Use with a stringconst simpleEmbed = block.embed.createBlock("https://www.youtube.com/watch?v=ec5m6t77eYM");// Use with options objectconst complexEmbed = block.embed.createBlock({ url: "https://www.youtube.com/watch?v=ec5m6t77eYM"});
Creates an embed block.