Wrapper on multiplatform kotlin for SauceNaoAPI
Go to file
2019-10-12 14:06:51 +06:00
gradle/wrapper init + add header model 2019-02-20 12:06:04 +08:00
src/main/kotlin/com/github/insanusmokrassar/SauceNaoAPI fix recover of short and long quota in quota manager 2019-10-12 14:06:51 +06:00
.gitignore init + add header model 2019-02-20 12:06:04 +08:00
build.gradle update build script and changelog 2019-10-12 13:47:00 +06:00
CHANGELOG.md update build script and changelog 2019-10-12 13:47:00 +06:00
gradle.properties update libraries 2019-10-10 23:25:35 +06:00
gradlew init + add header model 2019-02-20 12:06:04 +08:00
gradlew.bat init + add header model 2019-02-20 12:06:04 +08:00
LICENSE Initial commit 2019-02-20 11:34:55 +08:00
maven.publish.gradle updates for publication 2019-03-21 12:31:00 +08:00
publish.gradle init + add header model 2019-02-20 12:06:04 +08:00
README.md SauceNaoAnswer#row 2019-10-12 13:00:38 +06:00
settings.gradle init + add header model 2019-02-20 12:06:04 +08:00

SauceNaoAPI

It is wrapper for SauceNAO API. For now, library is in preview state. It can be fully used, but some of info can be unavailable from wrapper classes, but now you can access them via SauceNaoAnswer#row field.

Requester

For the requests we are using SauceNaoAPI object. Unfortunately, for now it supports only url strings as source of request. For example:

val key = // here must be your Sauce NAO API key
val requestUrl = // here must be your link to some image

val api = SauceNaoAPI(key)
api.use {
    println(
        it.request(requestUrl)
    )
}

Most of others requests use the same etymology and meaning as in the SauceNAO API docs.