A .NET library to interact with the Brawlhalla API.
Brawlhalla.Net is available from NuGet.
Alternatively, you can install directly with Install-Package Brawlhalla.NET.
Brawlhalla.Net targets netstandard1.4, some examples of supported frameworks include:
.NET Core 1.1 .NET Framework 4.6.1+
usingSystem;usingSystem.Threading.Tasks;usingSystem.Collections.Generic;// Import necessary usingsusingBrawlhallaNet;usingBrawlhallaNet.Responses;classProgram{// We need to create an async context in our main methodpublicstaticvoidMain(string[]args)=>MainAsync(args).GetAwaiter().GetResult();publicstaticasyncTaskMainAsync(string[]args){varclient=newBrawlhallaApiClient("API_KEY");// Initialize our client, replace API_KEY with your api key// Configure our client's log featureclient.Log+=(sender,event)=>{Console.WriteLine(event.Message);};// Now we can start to make requestsList<RankedPagePlayer>topPlayers=awaitclient.GetRankedPageAsync("1v1","all",1);foreach(RankedPagePlayerplayerintopPlayers){Console.WriteLine($"[{player.Rank}] {player.Name} ({player.ID}): {player.Elo}");// Example output: [12] Boomie (257670): 2025}Clanbmg=awaitclient.GetClanAsync(1);Console.WriteLine($"{bmg.Name} ({bmg.ClanCreationDate}): {bmg.Members.Count}");// Blue Mammoth Games (5/25/2016 8:00:00 PM +00:00): 16vartestPlayer=awaitclient.GetRankedPlayerAsync(2);Console.WriteLine($"{testPlayer.Name} ({testPlayer.BrawlhallaId}): {testPlayer.Wins}/{testPlayer.Games}");// [BMG] Dan (2): 2/2awaitTask.Delay(-1);// Pause our program until the user exits}}pls help
- Beta release 🎉
- Open issue with bugs
- Open issue with planned features
- Push to NuGet 🎉
- Start tests 🎉
- Xml comments for every method
Listed in order of how frequently I check them
Discord: Stereotypical Weeaboo#9990 (118971536395730946)
Reddit: /u/CallMeSometimeNever
Email: Steaboo@gmail.com