Helldivers Rust API Wrapper
A Rust wrapper for the unofficial Helldivers API. This library provides an easy way to interact with the Helldivers API and retrieve information about wars, planets, factions, and sectors.
Please do note, the Helldivers API is unofficial and may be subject to change at any time. More functions will be added as the API is reverse-engineered.
This library is not affiliated with Arrowhead Game Studios or Sony Interactive Entertainment.
Installation
Run the following Cargo command in your project directory:
cargo add helldivers_rs
Or add the following line to your Cargo.toml:
[]
= "0.3"
API Reference
The library provides the following functions:
get_status(war_id: i64, language: &str) -> Result<Status, reqwest::Error>: Get the current status of a war.
get_war_info(war_id: i64) -> Result<WarInfo, reqwest::Error>: Get information about a specific war.
get_planet_name(id: i64) -> String: Get the name of a planet by its ID.
get_faction_name(id: i64) -> String: Get the name of a faction by its ID.
get_sector_name(id: i64) -> String: Get the name of a sector by its ID.
For more details about the structs and their fields, please refer to the source code documentation.
Example
use helldivers_rs;
use tokio;
async
Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.
License
This project is licensed under the MIT License.