Skip to content

reuhreuh/henrikapi-val-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

henrikapi-val-client

Valorant Java client based on HenrikDev API.

Status

Type Status
Build Maven build CI
Quality CodeQL
Javadoc javadoc
Tests GitHub Workflow Status
Licence GitHub license

Features

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.

Getting started

Prerequisites

What you need is :

  • A HenrikDev API key
  • Java 11 & Maven

Installation

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>

Usage

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);
}

Documentation

Javadoc is available here

Changelog

v1.0.1 (TBD)

  • New endpoints :D

v1.0.0 (2024-09-26)

  • First release with just 3 end-points

About

Valorant Java client based on HenrikDev-API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages