Crates.io | oxid_roblox |
lib.rs | oxid_roblox |
version | 0.1.0 |
source | src |
created_at | 2024-01-16 05:25:21.281363 |
updated_at | 2024-01-16 05:25:21.281363 |
description | A Roblox web API wrapper written in Rust |
homepage | https://github.com/zmadie/oxid_roblox |
repository | https://github.com/zmadie/oxid_roblox |
max_upload_size | |
id | 1101316 |
size | 61,392 |
Authentication can be done by setting the .ROBLOSECURITY cookie through oxid_roblox::set_roblosecurity
:
oxid_roblox::set_roblosecurity("cookie");
// with dotenv
use dotenv::dotenv;
use std::env;
dotenv().ok();
oxid_roblox::set_roblosecurity(&env::var("COOKIE").unwrap());
If a method that requires authentication is called without setting the .ROBLOSECURITY cookie first, the program will panic.
All structs representing the Roblox API models should not be initialised by the user. Instead, they are all built through methods in modules and other structs.
Models can be found in the oxid_roblox::models
module:
And methods for getting the corresponding model can be found by searching for the model in the "In Names" category:
You can access the documentation at https://docs.rs/oxid_roblox.