-
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Damian Staszewski edited this page Mar 19, 2019
·
9 revisions
To access the APIs you'll need your own set of credentials which consist of a Developer ID (devId) and an Authentication Key (authKey). To getting those credentials, you need filling form on this link: https://fs12.formsite.com/HiRez/form48/secure_index.html
<repositories>
<repository>
<id>jitpack</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.stachu540</groupId>
<!--for all games-->
<artifactId>HiRezAPI-all</artifactId>
<!--for paladins-->
<!--<artifactId>HiRezAPI-paladins</artifactId>-->
<!--for smite-->
<!--<artifactId>HiRezAPI-smite</artifactId>-->
<!--for realm royale-->
<!--<artifactId>HiRezAPI-realm</artifactId>-->
<version>v3</version>
</dependency>
</dependencies>
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
// for all games
compile "com.github.stachu540:HiRezAPI-all:v3"
// for paladins
// compile "com.github.stachu540:HiRezAPI-paladins:v3"
// for smite
// compile "com.github.stachu540:HiRezAPI-smite:v3"
// for realm royale
// compile "com.github.stachu540:HiRezAPI-realm:v3"
}
repositories {
maven("https://jitpack.io")
}
dependencies {
// for all games
compile("com.github.stachu540:HiRezAPI-all:v3")
// for paladins
// compile("com.github.stachu540:HiRezAPI-paladins:v3")
// for smite
// compile("com.github.stachu540:HiRezAPI-smite:v3")
// for realm royale
// compile("com.github.stachu540:HiRezAPI-realm:v3")
}
Using ConfigBuilder
you will initialize into the #initConfig(<config>)
- For Smite is
SmiteGame
- For Paladins is
Paladins
- For Realm Royale is
RealmRoyale
Those classes are have static methods. You don't need initialization into field or variable.
example
RealmRoyale.initConfig {
setDevId("1004")
setAuthKey("23DF3C7E9BD14D84BF892AD206B6755C")
// setUserAgent("User Agent")
// setSessionStorage(FileSessionStorage("session.txt"))
// setEndpoint(Realm)
// setDefaultLanguage(Language.Polish)
}
To Create your own Session Storage use SessionStorage
interface