ValAPI.Net 1.3.1

dotnet add package ValAPI.Net --version 1.3.1
NuGet\Install-Package ValAPI.Net -Version 1.3.1
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.3.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ValAPI.Net --version 1.3.1
#r "nuget: ValAPI.Net, 1.3.1"
#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.3.1

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

# 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 547 8/30/2021
1.3.0 323 8/29/2021
1.2.11 321 4/23/2021
1.2.9 278 4/19/2021
1.2.8 342 4/18/2021
1.2.7 363 4/18/2021
1.2.6 284 4/16/2021
1.2.5 274 4/12/2021
1.2.4 329 4/12/2021
1.2.3 305 4/11/2021
1.2.2 314 4/9/2021
1.2.1 330 4/9/2021
1.2.0 302 4/8/2021
1.1.1 309 4/8/2021
1.1.0 317 4/8/2021
1.0.0 320 4/8/2021

Changed the Agents to constants and fixed Sova's id (thanks teddn)