An open API service indexing awesome lists of open source software.

https://github.com/azurlane-api/azurlane-rs

Wrapper for the unofficial azur lane json api in Rust
https://github.com/azurlane-api/azurlane-rs

Last synced: over 1 year ago
JSON representation

Wrapper for the unofficial azur lane json api in Rust

Awesome Lists containing this project

README

          

[![v1.0.0](https://img.shields.io/badge/crates.io-v1.1.0-blue.svg)](https://crates.io/crates/azurlane)

# azurlane-rs
Wrapper for the unofficial azur lane json api in Rust

## Installation
```toml
[dependencies]
azurlane = "1.1"
```

## Example
```rust
use azurlane::{AzurLaneRequester, Category};
use reqwest::Client;

fn main() {
let client = Client::new();

let _ = match client.get_ships(Category::RARITY, "Super Rare") {
Ok(response) => {
for i in 0..response.ships.len() {
println!("[{}]: ({})", response.ships[i].id, response.ships[i].name)
}
}
Err(why) => {
panic!("{}", why)
}
};
}
```

## Support
![discord](https://discordapp.com/api/v6/guilds/240059867744698368/widget.png?style=banner2)