Simple Notion

Easy to use library to read Notion DataBase using the NotionAPI.

Disclaimer

Please note that this library is not officially supported by the Notion team.

Features

Getting Started

Read Data-Base

```rust // Setup notion API client let mut client = crate::client::NotionClient::default(); client.seturl("You data-base url"); client.settoken("Your token");

// Get the data-base (send a request and return the json result) let database = client.getdatatablesync().unwrap();

// Parser of the data-base let parser = crate::parser::NotionResponseParser::new(database); // Convert the json to a Vec> to easier manipulation let datatable = crate::notiondatabase::NotionDataBase::new(parser.parse_table());

// Parse an element base on the line and column names let version = parser.parseelement(datatable.get(&parser, "Line Title", "Column Name").unwrap().1);

// Print the result println!("Version of \"Line Title\": {:?}", version); ```