Semigradsky / pokekotlin

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Download

PokeKotlin

This is a Java (and Kotlin, 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 the JCenter repository.

Gradle

repositories {
    maven { url 'http://jcenter.bintray.com' }
}
dependencies {
    compile 'me.sargunvohra.lib:pokekotlin:2.3.0'
}

Kobalt

val p = project {
    dependencies {
        compile("me.sargunvohra.lib:pokekotlin:2.3.0")
    }
}

Maven

<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>

About

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

License:Apache License 2.0


Languages

Language:Kotlin 99.9%Language:Batchfile 0.1%Language:Shell 0.0%