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
- Items API
- Deals API
- Trade Ad API
- Player API
- Game API
- Groups API
- Market Activity API
§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.
- Client
Builder - Used to build a
Client
.
Enums§
- Roli
Error - The universal error used in this crate.