GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ValAPI.Net/README.md at main · PikeNote/ValAPI.Net

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
54 lines (45 loc) · 2.46 KB
/

README.md

Copy path

File metadata and controls

54 lines (45 loc) · 2.46 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

# ValAPI.Net

Nuget 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

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.