This is a Java (and Kotlin, Scala, etc) client for PokeApi. It's written in Kotlin.
Full documentation coming soon. Meanwhile, look at these usage examples:
public class Example {
public static void main(String[] args) {
PokeApi pokeApi = new PokeApiClient();
PokemonSpecies bulbasaur = pokeApi.getPokemonSpecies(1);
System.out.println(bulbasaur);
}
}
fun main(args: Array<String>) {
val pokeApi = PokeApiClient()
val bulbasaur = pokeApi.getPokemonSpecies(1)
println(bulbasaur)
}
PokeKotlin is available from the JCenter repository.
repositories {
maven { url 'http://jcenter.bintray.com' }
}
dependencies {
compile 'me.sargunvohra.lib:pokekotlin:2.3.0'
}
val p = project {
dependencies {
compile("me.sargunvohra.lib:pokekotlin:2.3.0")
}
}
<project>
<repositories>
<repository>
<id>central</id>
<name>bintray</name>
<url>http://jcenter.bintray.com</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>me.sargunvohra.lib</groupId>
<artifactId>pokekotlin</artifactId>
<version>2.3.0</version>
<type>jar</type>
</dependency>
</dependencies>
</project>