League of Legends API Wrapper for Rust
Want to create the next coolest thing with Rust? A discord bot? A new website? The next haxor information center? This is for you.
Getting Started
The first thing is first. In your Cargo.toml file, add the following line
= "0.2.0"
lol_api_rs
In your main file add:
extern crate lol_api_rs;
Making Your First Call
Once everything is installed, making your first call is as easy as creating a constructor function and calling an endpoint.
// Use the Riot API constructor
use Riot;
// Define your Riot API Key
const RIOT_API_KEY: &'static str = "RGAPI-xxxxxxxxxxx";
Breaking changes
0.2.0
- Previously all calls returned the result or paniced. This was changed to returning a type Result.
Questions/Comments?
Open an issue on Github or send me an email. I would love to make this more robust/better working. Aware of rate limits, better coded, etc. This is my first rust project and I'm looking forward to learning more about the language and the community.