letterboxd

Crates.ioletterboxd
lib.rsletterboxd
version0.4.0
sourcesrc
created_at2017-09-12 21:12:30.416619
updated_at2024-03-15 09:15:31.833404
descriptionLetterboxd API provides access to data on the Letterboxd.com website
homepage
repositoryhttps://github.com/boxdot/letterboxd-rs
max_upload_size
id31520
size187,239
(boxdot)

documentation

README

Letterboxd API for Rust

crates-badge docs-badge license-badge ci-badge

Letterboxd API client for accessing the data on the Letterboxd.com website in Rust.

Example

#[tokio::main]
async fn main() -> letterboxd::Result<()> {
    let api_key_pair = letterboxd::ApiKeyPair::from_env().unwrap();
    let client = letterboxd::Client::new(api_key_pair);

    let req = letterboxd::SearchRequest {
        input: "Fight Club".to_string(),
        per_page: Some(1),
        ..Default::default()
    };
    let resp = client.search(&req).await?;
    println!("{:?}", resp);

    Ok(())
}

For more examples cf. tests/integration.rs.

Note: Not all APIs are implemented. Feel free to contribute missing implementation, usually these are very straight forward.

License

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this document by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 56

cargo fmt