Function notion_rs::builder[][src]

pub fn builder(token_v2: &str) -> ClientConfig

Create a new ClientBuilder to generate a new `NotionClient

let mut client = notion_rs::builder(TOKEN).build();
let blocks = client.get_page("...").await.unwrap();
for block in blocks {
 // do something
}