notionrs 0.10.0

A Notion API client that provides type-safe request serialization and response deserialization
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use notionrs::client::Client;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let notion_api_key = std::env::var("NOTION_TOKEN").unwrap();
    let client = Client::new(notion_api_key);

    let request = client
        .retrieve_data_source()
        .data_source_id("DATA_SOURCE_ID");

    let _response = request.send().await?;

    Ok(())
}