boosty-rs
A Rust library for Boosty closed API
Installation
Examples
Fetch all posts from blog
use Error;
use request;
async
Fetch one post from blog
use Error;
use request;
async
A Rust library for Boosty closed API
$ cargo add boosty-rs
use std::error::Error;
use boosty_rs::request;
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
let response = request::fetch_posts("boosty".to_string()).await?;
println!("{:?}", response);
Ok(())
}
use std::error::Error;
use boosty_rs::request;
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
let response = request::fetch_post("boosty".to_string(), "a4dc61c8-4ff9-495b-946b-3982efef68fe".to_string()).await?;
println!("{:?}", response);
Ok(())
}