Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jan-tennert/r6statsjava
A complete R6Stats api client for java
https://github.com/jan-tennert/r6statsjava
Last synced: 25 days ago
JSON representation
A complete R6Stats api client for java
- Host: GitHub
- URL: https://github.com/jan-tennert/r6statsjava
- Owner: jan-tennert
- License: apache-2.0
- Created: 2021-03-23T23:46:58.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-08T17:06:00.000Z (over 3 years ago)
- Last Synced: 2024-11-08T04:05:38.952Z (3 months ago)
- Language: Kotlin
- Homepage:
- Size: 61.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# R6StatsJava
A complete R6Stats api client for java\
_Requires an api key which you can get from the discord server from [R6Stats](https://r6stats.com)_\
If you have an idea or found a bug create a pull request or an issue# Examples:
```java
R6Stats r6 = new R6Stats("apiKey");
R6Player player = r6.getR6PlayerStats("TheRealJanPANDA", R6Stats.Platform.PC);System.out.println(player.getGeneralStats().getKills());
System.out.println(player.getGamemodeStats().getBombStats().getWins());
System.out.println(player.getRankedStats().getKills());R6SeasonalStats seasonal = r6.getR6PlayerSeasonalStats("TheRealJanPANDA", R6Stats.Platform.PC);
System.out.println(seasonal.getCrimsonHeist().getKills());
//...
R6Leaderboard leaderboard = r6.getR6Leaderboard(R6Stats.Platform.PC, R6Stats.Region.ALL);
System.out.println(leaderboard.getPlayerAtPosition(1).getKd());
```
You can also sort the lists at R6OperatorStats, R6WeaponStats, R6WeaponCategoryStats. Examples:
```java
r6.getR6OperatorStats("TheRealJanPANDA", R6Stats.Platform.PC).sortOperatorsBy(R6Operator.SortValue.KILLS)
r6.getR6OperatorStats("TheRealJanPANDA", R6Stats.Platform.PC).sortAttackersBy(R6Operator.SortValue.KILLS)r6.getR6WeaponStats("TheRealJanPANDA", R6Stats.Platform.PC).sortWeaponsBy(R6Weapon.SortValue.KILLS)
```-> These are not all features there are much more. You have to test around yourself.
# Installation:
### Maven
```xml
jitpack.io
https://jitpack.io
```
```xmlcom.github.jan-tennert
R6StatsJava
1.3.4```
### Gradle
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
```gradle
dependencies {
implementation 'com.github.jan-tennert:R6StatsJava:1.3.4'
}
```