screenshotbase-rs
Rust client for the screenshotbase.com API.
- Website:
https://screenshotbase.com/ - Docs:
https://screenshotbase.com/docs/
Add to Cargo.toml
[]
= "0.1"
Quickstart
use ;
#
# async
License
MIT
Rust client for the screenshotbase.com API.
https://screenshotbase.com/https://screenshotbase.com/docs/[dependencies]
screenshotbase = "0.1"
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(())
# }
MIT