Crates.io | rbx_auth |
lib.rs | rbx_auth |
version | 0.2.3-prerelease |
source | src |
created_at | 2022-06-18 21:50:09.34877 |
updated_at | 2024-10-14 13:58:13.023591 |
description | Constructs params for making authenticated requests to Roblox APIs |
homepage | https://github.com/blake-mealey/mantle/tree/main/rbx_auth |
repository | https://github.com/blake-mealey/mantle |
max_upload_size | |
id | 608703 |
size | 57,109 |
rbx_auth
Constructs a headers map and cookie jar that can be passed to a reqwest
client to make authenticated
requests to Roblox APIs. Best used with the rbx_api
crate. Available as both a library and CLI.
Install with cargo install rbx_auth
.
rbx_auth --help
Disable default features to exclude the CLI dependencies with cargo add rbx_auth --no-default-features
, or
use the default-features = false
configuration:
# Cargo.toml
[dependencies]
rbx_auth = { version = "<version>", default-features = false }
use rbx_auth::{RobloxAuth, WithRobloxAuth};
let auth = RobloxAuth::new().await?;
let client = reqwest::Client::builder()
.user_agent("Roblox/WinInet")
.roblox_auth(auth)
.build()?;