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
- Host: GitHub
- URL: https://github.com/azurlane-api/azurlane-rs
- Owner: azurlane-api
- License: gpl-3.0
- Created: 2019-11-12T23:56:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-15T20:33:38.000Z (over 6 years ago)
- Last Synced: 2025-03-12T05:35:31.388Z (over 1 year ago)
- Language: Rust
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](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
