mirror of
https://github.com/InsanusMokrassar/SauceNaoAPI.git
synced 2024-11-22 14:33:46 +00:00
Wrapper on multiplatform kotlin for SauceNaoAPI
hacktoberfesthacktoberfest2020kotlinkotlin-jskotlin-jvmkotlin-librarykotlin-multiplatformsaucenao-api
gradle/wrapper | ||
src/main/kotlin/com/github/insanusmokrassar/SauceNaoAPI | ||
.gitignore | ||
build.gradle | ||
CHANGELOG.md | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
LICENSE | ||
maven.publish.gradle | ||
publish.gradle | ||
README.md | ||
renovate.json | ||
settings.gradle |
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.