Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pokeapi/pokekotlin

Kotlin (or Java, Scala, etc) client for PokeApi
https://github.com/pokeapi/pokekotlin

kotlin pokeapi wrapper

Last synced: 7 days ago
JSON representation

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

Awesome Lists containing this project

README

        

[![Bintray](https://img.shields.io/bintray/v/sargunv/maven/pokekotlin)](https://bintray.com/sargunv/maven/pokekotlin)
[![License](https://img.shields.io/github/license/PokeAPI/pokekotlin)](https://github.com/PokeAPI/pokekotlin/blob/master/LICENSE)
[![Build](https://img.shields.io/github/workflow/status/pokeapi/pokekotlin/Java%20CI%20with%20Gradle)](https://github.com/PokeAPI/pokekotlin/actions?query=workflow%3A%22Java+CI+with+Gradle%22)
[![Codecov](https://img.shields.io/codecov/c/github/PokeAPI/pokekotlin)](https://codecov.io/gh/PokeAPI/pokekotlin)

# PokeKotlin

Maintainer: [sargunv](https://github.com/sargunv)

This is a [Kotlin](https://kotlinlang.org/) (and Java, Scala, etc) client for [PokeApi](https://github.com/PokeAPI/pokeapi). It's written in Kotlin.

## Example

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

### Java

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

### Kotlin

```kotlin
fun main(args: Array) {
val pokeApi = PokeApiClient()
val bulbasaur = pokeApi.getPokemonSpecies(1)
println(bulbasaur)
}
```

## Download

PokeKotlin is available from Bintray. The latest version number is: ![Bintray](https://img.shields.io/bintray/v/sargunv/maven/pokekotlin?label)

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