/bangumi-api

A kotlin implementation of bangumi.tv api.

Primary LanguageKotlinApache License 2.0Apache-2.0

bangumi-api

A kotlin implementation of bangumi api.

Example Usage

fun main() {
    val bangumiClient = BangumiClient("MY_ACCESS_TOKEN") // token is optional for public API
    val user = bangumiClient.execute(GetUserByName("155125"))
    println(user.nickname)
}

See api tests for more examples.

Maven Dependency

<dependency>
    <groupId>fun.fantasea</groupId>
    <artifactId>bangumi-api</artifactId>
    <version>CHANGE_THIS_TO_LATEST</version>
</dependency>