Wrapper on multiplatform kotlin for SauceNaoAPI
Go to file
2021-05-26 22:02:16 +06:00
.github/workflows Create build_and_publish.yml 2021-05-26 21:57:39 +06:00
gradle/wrapper update gradle wrapper 2021-05-26 21:42:51 +06:00
src update publishing 2020-12-02 14:44:25 +06:00
.gitignore init + add header model 2019-02-20 12:06:04 +08:00
build.gradle update package 2020-12-02 14:32:26 +06:00
changelog_parser.sh add changelog parser 2020-10-08 15:16:41 +06:00
CHANGELOG.md update klock 2021-05-26 22:02:16 +06:00
github_release.gradle update github release file 2020-10-08 17:07:37 +06:00
gradle.properties update klock 2021-05-26 22:02:16 +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
publish.gradle update publish scripts 2021-03-08 00:38:32 +06:00
publish.kpsb update publish scripts 2021-03-08 00:38:32 +06:00
README.md update readme 2020-12-23 13:59:22 +06:00
renovate.json Add renovate.json 2020-08-12 20:04:50 +00:00
settings.gradle upmigration 2020-12-02 14:39:54 +06:00

SauceNaoAPI

Download

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.

Including

Gradle

implementation "dev.inmo:saucenaoapi:$saucenaoapi_version"

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.