/H-Game

Asynchronous Video Game data API wrapper. Built originally for my Hifumi discord bot.

Primary LanguageC#MIT LicenseMIT

H-Game

Asynchronous Video Game data API wrapper. Built originally for my Hifumi discord bot.


Supported APIs

  • Steam
  • World of Warships

In-progress APIs

  • osu!

Add to Project Clone repository and add with Visual Studio or through .NET CLI

    dotnet add reference "path_to_cloned_repo/HGame.csproj"

Code Example

    var client = new HGameClient(new HGameConfig
    {
        OsuKey = "YOUR_OSU_KEY",
        SteamKey = "YOUR_STEAM_KEY",
        WowsKey = "YOUR_WAR_GAMING_KEY"
    });

    var steamSearch = await client.Steam.RecentGamesAsync("76561198069528587").ConfigureAwait(false);
    Console.WriteLine(steamSearch.RecentGames.TotalCount);

    List<string> usernames = new List<string>(new string[] { "gazzotto" });
    var wowsSearch = await client.Wows.GetPlayersAsync(Region.Na, usernames).ConfigureAwait(false);
    Console.WriteLine(wowsSearch.PlayersList[0].AccountId);

    var osuSearch = await client.Osu.GetUserAsync("vic485");
    Console.WriteLine(osuSearch[0].Accuracy);