rbxcloud 0.17.0

CLI and SDK for the Roblox Open Cloud APIs
Documentation
use rbxcloud::rbx::{error::Error, types::GroupId, v2::Client};

async fn get_group_shout() -> Result<String, Error> {
    // Inputs:
    let api_key = "MY_API_KEY";
    let group_id = 9876543210;

    let client = Client::new(api_key);
    let group = client.group(GroupId(group_id));

    // Get the shout's content:
    group.get_shout().await.map(|r| r.content)
}

#[tokio::main]
async fn main() {
    let shout_res = get_group_shout().await;
    match shout_res {
        Ok(shout) => println!("{shout}"),
        Err(e) => eprintln!("{e:?}"),
    }
}