Crate roli

Source
Expand description

A low level API wrapper for Rolimons.com.

This crate is a low level wrapper due to the fact that allowed requests to the api are limited. To maintain flexibility while also using the api endpoints responsibly, the user is expected to maintain their own caching.

All endpoints are accessed from a Client.

§API Coverage Checklist

§Quick Start

This code snippet allows you to get a list of all limited items on Rolimons, which includes information you would see on an item’s page.


#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    let client = roli::ClientBuilder::new().build();
    let all_item_details = client.all_item_details().await?;
    println!("Item Amount: {}", all_item_details.len());
    Ok(())   
}

Re-exports§

pub use reqwest;

Modules§

deals
Contains all the endpoints associated with the deals page.
games
Contains all the endpoints associated with games.
groups
Contains all the endpoints associated with groups.
items
Contains all the endpoints associated with getting item details.
market_activity
Contains all the endpoints associated with the market activity page.
players
Contains all the endpoints associated with players.
trade_ads
Contains all the endpoints associated with the trade ads page.

Structs§

Client
Used to interact with the rest of the rRolimons api wrapper.
ClientBuilder
Used to build a Client.

Enums§

RoliError
The universal error used in this crate.