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_
aes_ keys_ v2 - Get the current AES keys.
- get_
banners_ colors_ v1 - Get the banner colors.
- get_
banners_ v1 - Get the banners.
- get_
cosmetic_ by_ id_ v2 - Get the cosmetic by ID.
- get_
cosmetics_ new_ v2 - Get the new cosmetics.
- get_
cosmetics_ v2 - Get the cosmetics.
- get_
creatorcode_ v2 - Get the creator code.
- get_
map_ v1 - Get the map.
- get_
news_ br_ v2 - Get the battle royale news.
- get_
news_ creative_ v2 - Get the creative news.
- get_
news_ stw_ v2 - Get the save the world news.
- get_
news_ v2 - Get the news.
- get_
playlist_ by_ id_ v1 - Get the playlist by ID.
- get_
playlists_ v1 - Get the playlists.
- get_
shop_ br_ v2 - Get the battle royale shop.
- get_
shop_ combined_ v2 - Get the combined shop.
- get_
stats_ by_ account_ id_ v2 - Get the player stats by account ID.
- get_
stats_ v2 - Get the player stats.