Valorant Java client based on HenrikDev API.
Type | Status |
---|---|
Build | |
Quality | |
Javadoc | |
Tests | |
Licence |
henrikapi-val-client
provides 1 to 1 SDK get data from HenrikDev API.
This API is free, however, you'll have to request an API key on HenrikDev System Discord
So far following end-points are implemented:
Player
- /valorant/v1/by-puuid/mmr-history/{region}/{puuid}
Match
- /valorant/v4/match/{region}/{matchid}
Premier
- /valorant/v1/premier/{team_name}/{team_tag}
The SDK also provides a complete API model, generated from the Swagger definition.
What you need is :
- A HenrikDev API key
- Java 11 & Maven
Import dependency in your pom.xml
:
<properties>
...
<!-- Use the latest version whenever possible. -->
<henrikval.client.version>1.0.0</henrikval.client.version>
...
</properties>
<dependencies>
...
<dependency>
<groupId>net.rr-world</groupId>
<artifactId>henrikapi-val-client</artifactId>
<version>${henrikval.client.version}</version>
</dependency>
...
</dependencies>
Just instanciate the client with API key :
HenrikApiClient client = new HenrikApiClient("HDEV-XXX");
Optional<V1mmrh> res = client.getV1PlayerMMRHistory(Regions.EU.getValue(), "fe067f25-57a5-4f95-81f1-06d96b2290be");
If you are in a Spring context, you may wish to initialize a bean using your RestTemplate
instance :
@Bean
public HenrikApiClient getClient(@Autowired RestTemplate restClient, @Value("${henrikdev.api.key}") String apiKey) {
return new HenrikApiClient(apiKey, restClient);
}
Javadoc is available here
- New endpoints :D
- First release with just 3 end-points