TheAltening API made by Vladymyr now branded under the official repo with the release tag "4.0.0"
repositories {
mavenCentral()
}
dependencies {
implementation 'com.thealtening.api:api:@BADGE-VERSION@'
}
<dependencies>
<dependency>
<groupId>com.thealtening.api</groupId>
<artifactId>api</artifactId>
<version>@BADGE-VERSION@</version>
</dependency>
</dependencies>
- Use JDK 1.8+
To create a new BasicDataRetriever
instance depending on the wanted type:
import com.thealtening.api.TheAltening
BasicDataRetriever basicDataRetriever = TheAltening.newBasicRetriever("api key");
AsynchronousDataRetriever asynchronousDataRetriever = TheAltening.newAsyncRetriever("api key");
you also can pass the BasicDataRetriever
to AsynchronousDataRetriever
using toAsync
:
AsynchronousDataRetriever asynchronousDataRetriever = basicDataRetriever.toAsync();
Even though most of the other methods are self-explanatory. If you want a little bit more detailed use of the API check out the tests.