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

Modules§

response_types
utils

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.