This library provides a Rust implementation of the Stalcraft API. You can read more about the API at https://eapi.stalcraft.net/.
```rust use scapi::{DEMOAPPTOKEN, DEMOURL, ScAppClient};
async fn main() { let client = ScAppClient::newcustom(DEMOURL, DEMOAPPTOKEN); println!("{:?}", client.getclanslist("RU", None, None).await); }
```
```rust use scapi::{DEMOURL, DEMOUSERTOKEN};
async fn main() { let client = scapi::ScUserClient::newcustom(DEMOURL, DEMOUSERTOKEN); // Get list of characters for user. let info = client.getcharacters_list("RU").await.unwrap(); println!("{:?}", info);
// You can also use methods from ScAppClient.
let info = client.app_client.get_clans_list("RU", None, None).await.unwrap();
println!("{:?}", info);
}
```
This library does not provide any way to acquire tokens automatically.