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
- Read Data-Base
Getting Started
Read Data-Base
// Setup notion API client
let mut client = crate default;
client.set_url;
client.set_token;
// Get the data-base (send a request and return the json result)
let data_base = client.get_data_table_sync.unwrap;
// Parser of the data-base
let parser = crate new;
// Convert the json to a Vec<Vec<JsonValue>> to easier manipulation
let data_table = crate new;
// Parse an element base on the line and column names
let version = parser.parse_element;
// Print the result
println!;