Heres a Postman collection to play around with the API if youre interested: https://www.postman.com/notionhq/workspace/notion-s-public-api-workspace/overview This is a source plugin for pulling content into Gatsby from official public Notion API (currently in beta). With this plugin, you will be able to query your Notion pages in Gatsby using GraphQL. Notion API Reference An example Heres my blog running on gatsby-source-notion-api or Before using this plugin, make sure you Then add this to your gatsby-config.json : token [string][required] Integration token. databaseId [string][required] The identifier of the database you want to get pages from. The integration identified by provided token must have access to the database with given id. propsToFrontmatter [boolean][defaults to true] Put Notion page props to Markdown frontmatter. If you set this to false, you will need to query notion to get page props. lowerTitleLevel [boolean][defaults to true] Push headings one level...
Comentarios
Publicar un comentario