SauceNaoAPI/README.md

37 lines
979 B
Markdown
Raw Permalink Normal View History

2019-10-12 06:37:48 +00:00
# SauceNaoAPI
2021-08-31 05:46:59 +00:00
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/dev.inmo/saucenaoapi/badge.svg)](https://maven-badges.herokuapp.com/maven-central/dev.inmo/saucenaoapi)
2020-08-29 22:34:19 +00:00
2019-10-12 06:37:48 +00:00
It is wrapper for [SauceNAO](https://saucenao.com/) API. For now, library is
in preview state. It can be fully used, but some of info can be unavailable from
2019-10-12 07:00:38 +00:00
wrapper classes, but now you can access them via `SauceNaoAnswer#row` field.
2019-10-12 06:37:48 +00:00
2020-08-29 22:34:19 +00:00
## Including
### Gradle
```groovy
2020-12-23 07:59:22 +00:00
implementation "dev.inmo:saucenaoapi:$saucenaoapi_version"
2020-08-29 22:34:19 +00:00
```
2019-10-12 06:37:48 +00:00
## Requester
For the requests we are using `SauceNaoAPI` object. Unfortunately, for now it
supports only url strings as source of request. For example:
```kotlin
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.