notion_api 0.0.1-prealpha1 copy "notion_api: ^0.0.1-prealpha1" to clipboard
notion_api: ^0.0.1-prealpha1 copied to clipboard

outdated

Notion API client for dart.

Notion API client for dart.

Using #

You only have to create a new instance of the NotionClient class and all the API requests will be available as class methods.

Note: Maybe they will be separated onto separated classes, idk yet.

NotionClient notion = NotionClient(token: 'YOUR SECRET TOKEN FROM INTEGRATIONS PAGE');

Methods #

20/May/2021: The methods return a http.Response. You can find how to use it in its documentation.

Creating pages

Page page = Page(databaseId: 'YOUR DATABASE ID');
page.title = Text(content: 'The title of the new page');

notion.createPage(page);

Retrieving pages

notion.retrievePage(test_page_id);
27
likes
0
pub points
46%
popularity

Publisher

unverified uploader

Notion API client for dart.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on notion_api