Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boxdot/letterboxd-rs
Letterboxd API for access to data on the Letterboxd.com website in Rust.
https://github.com/boxdot/letterboxd-rs
letterboxd rest-api rust
Last synced: 24 days ago
JSON representation
Letterboxd API for access to data on the Letterboxd.com website in Rust.
- Host: GitHub
- URL: https://github.com/boxdot/letterboxd-rs
- Owner: boxdot
- License: other
- Created: 2017-07-11T20:37:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-15T09:15:18.000Z (8 months ago)
- Last Synced: 2024-03-15T21:57:29.873Z (8 months ago)
- Topics: letterboxd, rest-api, rust
- Language: Rust
- Size: 68.4 KB
- Stars: 21
- Watchers: 4
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Letterboxd API for Rust
[![crates-badge]][crates-url]
[![docs-badge]][docs-url]
[![license-badge]][license]
[![ci-badge]][ci][crates-badge]: https://img.shields.io/crates/v/letterboxd.svg
[crates-url]: https://crates.io/crates/letterboxd
[docs-badge]: https://docs.rs/letterboxd/badge.svg
[docs-url]: https://docs.rs/letterboxd
[license-badge]: https://img.shields.io/crates/l/letterboxd.svg
[license]: #license
[ci-badge]: https://github.com/boxdot/letterboxd-rs/actions/workflows/rust.yml/badge.svg
[ci]: https://github.com/boxdot/letterboxd-rs/actions/workflows/rust.yml[Letterboxd API](http://api-docs.letterboxd.com) client for accessing the data on the
Letterboxd.com website in Rust.## Example
```rust
#[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
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
http://www.apache.org/licenses/LICENSE-2.0)
* MIT License ([LICENSE-MIT](LICENSE-MIT) or
http://opensource.org/licenses/MIT)### 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.