• Stars
    star
    171
  • Rank 222,266 (Top 5 %)
  • Language
    Kotlin
  • License
    Apache License 2.0
  • Created almost 9 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Kotlin (or Java, Scala, etc) client for PokeApi

Bintray License Build Codecov

PokeKotlin

Maintainer: sargunv

This is a Kotlin (and Java, Scala, etc) client for PokeApi. It's written in Kotlin.

Example

Full documentation coming soon. Meanwhile, look at these usage examples:

Java

public class Example {
    public static void main(String[] args) {
        PokeApi pokeApi = new PokeApiClient();
        PokemonSpecies bulbasaur = pokeApi.getPokemonSpecies(1);
        System.out.println(bulbasaur);
    }
}

Kotlin

fun main(args: Array<String>) {
    val pokeApi = PokeApiClient()
    val bulbasaur = pokeApi.getPokemonSpecies(1)
    println(bulbasaur)
}

Download

PokeKotlin is available from Bintray. The latest version number is: Bintray

repositories {
    mavenCentral()
    maven { url 'https://dl.bintray.com/sargunv/maven' }
}
dependencies {
    implementation 'me.sargunvohra.lib:pokekotlin:<VERSION>'
}