A Go module that wraps the Valorant game API.
Supports flexes via newest v3 content API.
To use the valclient module in your Go project, you can install it using go get:
go get github.com/truearken/valclientHere's a basic example of how to use the valclient module in your Go application:
package main
import (
"log"
"github.com/truearken/valclient/valclient"
)
func main() {
client, err := valclient.NewClient()
if err != nil {
panic(err)
}
loadout, err := client.GetPlayerLoadout()
if err != nil {
panic(err)
}
log.Print(loadout)
}- Fetch player details
- Fetch and set loadout
- Retrieve match history
- And more...
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
This project is inspired by valclient.py by Colin Hartigan.
Documentation for the endpoints is primarily from this Documentation.