screenshotbase 0.1.0

Rust client for the screenshotbase.com API
Documentation

screenshotbase-rs

Rust client for the screenshotbase.com API.

Add to Cargo.toml

[dependencies]
screenshotbase = "0.1"

Quickstart

use screenshotbase::{ScreenshotBaseClient, AuthMethod};

# #[tokio::main]
# async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = ScreenshotBaseClient::builder("YOUR_API_KEY")
    .with_auth_method(AuthMethod::Header)
    .build();

let status = client.status().await?;
println!("{:?}", status);

let render = client.render(&[("url", "https://example.com"), ("format", "png")]).await?;
println!("{:?}", render);
# Ok(())
# }

License

MIT