Crate fortnite_api
source ·Expand description
§Fortnite API
This crate is a wrapper for the Fortnite API.
§Usage
#[tokio::main]
async fn main() {
let http_client = reqwest::Client::new();
let result = fortnite_api::get_news_v2(&http_client, None).await;
println!("Result: {:#?}", result);
assert!(result.is_ok());
}
§Endpoints
Endpoint | Function | Result Type |
---|---|---|
AES V2 | get_aes_keys_v2 | AesV2 |
Banners V1 | get_banners_v1 | BannersV1 |
Banners Colors V1 | get_banners_colors_v1 | BannersColorsV1 |
Cosmetics V2 | get_cosmetics_v2 | CosmeticsV2 |
Cosmetics New V2 | get_cosmetics_new_v2 | CosmeticsNewV2 |
Cosmetic By ID V2 | get_cosmetic_by_id_v2 | CosmeticV2 |
Creator Code V2 | get_creatorcode_v2 | CreatorCodeV2 |
Map V1 | get_map_v1 | MapV1 |
News V2 | get_news_v2 | NewsV2 |
News Gamemode V2 | get_news_br_v2 get_news_stw_v2 get_news_creative_v2 | News |
Playlists V1 | get_playlists_v1 | PlaylistsV1 |
Playlists By ID V1 | get_playlist_by_id_v1 | PlaylistV1 |
Shop BR V2 | get_shop_br_v2 get_shop_combined_v2 | ShopV2 |
Stats V2 | get_stats_v2 get_stats_by_account_id_v2 | StatsV2 |
Modules§
Functions§
- Get the current AES keys.
- Get the banner colors.
- Get the banners.
- Get the cosmetic by ID.
- Get the new cosmetics.
- Get the cosmetics.
- Get the creator code.
- Get the map.
- Get the battle royale news.
- Get the creative news.
- Get the save the world news.
- Get the news.
- Get the playlist by ID.
- Get the playlists.
- Get the battle royale shop.
- Get the combined shop.
- Get the player stats by account ID.
- Get the player stats.