roblox-api 0.1.4

Roblox web api bindings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use dotenvy_macro::dotenv;
use roblox_api::{AssetTypeId, Paging, api::inventory, client::Client};

const USER_ID: u64 = 3139503587;

#[tokio::test]
async fn user_owned_assets() {
    let mut client = Client::from_cookie(dotenv!("ROBLOX_COOKIE").into());
    inventory::v2::user_owned_assets(&mut client, USER_ID, AssetTypeId::Hat, Paging::default())
        .await
        .unwrap();
}