Sprayxe / valorant.js

An API Wrapper for valorant with oauth support
MIT License
18 stars 6 forks source link

"X-Riot-ClientVersion" header changes every update. #8

Closed BobbyESP closed 3 years ago

BobbyESP commented 3 years ago

That header changes every update and it is needed to get all the items (cause the versions includes new items kek). So, Officer has a Valorant API that gives u the version; maybe its a good option to put it instead of updating the library every time that a update gets launched.

This is the url: https://dash.valorant-api.com

And this is the request (GET, of course): https://valorant-api.com/v1/version

The problem, it needs to be formatted like i have in the line 454 of the file src/main/valorant/index.js

FPilica commented 3 years ago

I will implement this in ~a week after I am done with my exams

BobbyESP commented 3 years ago

okk

BobbyESP commented 3 years ago

btw, if i can try to implemt it by myself, i will made a pull request. later i'll.