Wrapper on multiplatform kotlin for SauceNaoAPI
Go to file
InsanusMokrassar 47161eb4ff
Merge pull request #153 from InsanusMokrassar/0.14.0
0.14.0
2022-12-23 13:08:04 +06:00
.github/workflows Update build_and_publish.yml 2022-12-11 09:17:08 +06:00
gradle make LimitStatus and Limits to be comparable 2022-12-22 13:26:06 +06:00
kotlin-js-store recreate yarn.lock 2022-05-14 13:44:21 +06:00
src update SauceNaoAPI structure 2022-12-22 15:55:32 +06:00
.gitignore init + add header model 2019-02-20 12:06:04 +08:00
CHANGELOG.md update SauceNaoAPI structure 2022-12-22 15:55:32 +06:00
LICENSE Initial commit 2019-02-20 11:34:55 +08:00
README.md Update README.md 2021-08-31 11:46:59 +06:00
build.gradle migration onto toml and actualizing of publish scripts 2022-03-11 13:54:01 +06:00
changelog_parser.sh add changelog parser 2020-10-08 15:16:41 +06:00
github_release.gradle Update github_release.gradle 2022-07-22 20:04:50 +06:00
gradle.properties start 0.14.0 2022-12-22 13:19:27 +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
publish.gradle Add files via upload 2022-12-11 09:08:39 +06:00
publish.kpsb Add files via upload 2022-12-11 09:08:39 +06:00
renovate.json Add renovate.json 2020-08-12 20:04:50 +00:00
settings.gradle migration onto toml and actualizing of publish scripts 2022-03-11 13:54:01 +06:00

README.md

SauceNaoAPI

Maven Central

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.