ValAPI.Net 1.2.9

There is a newer version of this package available.
See the version list below for details.
dotnet add package ValAPI.Net --version 1.2.9                
NuGet\Install-Package ValAPI.Net -Version 1.2.9                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ValAPI.Net" Version="1.2.9" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ValAPI.Net --version 1.2.9                
#r "nuget: ValAPI.Net, 1.2.9"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ValAPI.Net as a Cake Addin
#addin nuget:?package=ValAPI.Net&version=1.2.9

// Install ValAPI.Net as a Cake Tool
#tool nuget:?package=ValAPI.Net&version=1.2.9                

# ValAPI.Net

Nuget

A class library for interacting with the Valorant In Game API in the .NET framework.

Docs

Usage

Use Nuget to download the package to your project. Make sure to include using ValAPINet; at the top of your code. The documentation is found in the wiki, but I reccomend using the docsv2 folder in the ValorantClientAPI documentation found at https://github.com/RumbleMike/ValorantClientAPI.

Example

This example gets the rank of the logged in user. This would return Platinum 1.

Auth au = Auth.Login(username, password, Region.NA);
MMR mmr = MMR.GetMMR(au);
Console.WriteLine(Ranks.GetRankFormatted(mmr.Rank));

This code will lock Omen in the user's current game.

Auth au = Auth.Login(username, password, Region.NA);
PregameGetPlayer pregame = PregameGetPlayer.GetPlayer(au);
SelectAgent.LockAgent(au, pregame.MatchID, Agent.Omen);

This code will write the gamename and tag of all of the players in the match.

Auth au = Auth.Login(username, password, Region.NA);
MatchData md = MatchData.GetMatchData(au, matchID);
foreach(MatchData.Player ply in md.players)
{
    Console.WriteLine(ply.gameName + "#" + ply.tagLine);
}

This code does the same thing as the code before but doesn't require a password. The game has to be running though.

Auth au = Websocket.GetAuthLocal(Region.NA);
MatchData md = MatchData.GetMatchData(au, matchID);
foreach(MatchData.Player ply in md.players)
{
    Console.WriteLine(ply.gameName + "#" + ply.tagLine);
}

Contributing

If you have anything you want to add, please contribute. Every endpoint makes this project better.

Issues and Support

If you need help or want to report bugs, reach out on discord at bigtaco#4761.

Credits

This would not be possible without RumbleMike's documentation, find him at @ValorLeaks and @RumbleMikee.

Disclaimer

This package is not supported or endorsed by Riot Games. Any use of this package is at your own risk. I take no responsibility over the use of this package. By downloading through Nuget, you agree to these conditions

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.1 595 8/30/2021
1.3.0 354 8/29/2021
1.2.11 356 4/23/2021
1.2.9 316 4/19/2021
1.2.8 374 4/18/2021
1.2.7 396 4/18/2021
1.2.6 318 4/16/2021
1.2.5 306 4/12/2021
1.2.4 356 4/12/2021
1.2.3 334 4/11/2021
1.2.2 348 4/9/2021
1.2.1 364 4/9/2021
1.2.0 330 4/8/2021
1.1.1 340 4/8/2021
1.1.0 348 4/8/2021
1.0.0 359 4/8/2021

New endpoints and bug fixes