robloxapi is a open source async Rust API wrapper for roblox; Fork of PythonicIconic's RbxAPI-rs.
You can install the library by running cargo add roboxapi
Example of retrieving a given user, three different ways! ```rust use rbxapi;
async fn main() { let cookie = "your_cookie"; let mut client = rbxapi::Client.new().cookie(cookie).await;
let my_user = client.current_user().await?;
let str_user = client.user("builderman").await?;
let int_user = client.user(156).await?;
} ```
```rust use robloxapi; use tokio;
async fn main() { let place_id = 7415484311; // Place ID for game let mut client = robloxapi::Client() // Initialize a new client instance .await;
// Create a new game given place id let game = client.game(place_id).await?;
// Fails if a devproduct already exists with the name
let dev_product = game.create_dev_product("name-of-dev-product", 17).await?;
}
```