An open API service indexing awesome lists of open source software.

https://github.com/zt64/ryd-kt

Kotlin multiplatform library for interfacing with the Return YouTube Dislikes API
https://github.com/zt64/ryd-kt

Last synced: 5 months ago
JSON representation

Kotlin multiplatform library for interfacing with the Return YouTube Dislikes API

Awesome Lists containing this project

README

          

# ryd-kt

[![Maven Central Version](https://img.shields.io/maven-central/v/dev.zt64.ryd-kt/core)](https://central.sonatype.com/artifact/dev.zt64.ryd-kt/core)


![badge-platform-jvm]
![badge-platform-js]
![badge-platform-js-node]
![badge-platform-linux]
![badge-platform-windows]
![badge-platform-macos]
![badge-platform-ios]
![badge-platform-tvos]
![badge-platform-watchos]

Kotlin multiplatform client for
the [Return YouTube Dislikes API](https://returnyoutubedislikeapi.com/swagger/index.html).
Using [Ktor](https://github.com/ktorio/ktor) for networking.

## Setup

```
[versions]
rydKt = "x.y.z"

[libraries]
ryd = { module = "dev.zt64.ryd-kt:client", version.ref = "rydKt" }
```

Make sure to replace `x.y.z` with the latest version and to add a Ktor engine to your dependencies.

## Usage

```kotlin
val client = RydClient()
val res = client.getVotes("dQw4w9WgXcQ")

println("Likes: ${res.likes}")
println("Dislikes: ${res.dislikes}")

val userId = "..."

client.like(userId, videoId)
client.dislike(userId, videoId)
client.removeVote(userId, videoId)
```

## License

[MIT](LICENSE)

[badge-platform-jvm]: http://img.shields.io/badge/-jvm-DB413D.svg?style=flat

[badge-platform-js]: http://img.shields.io/badge/-js-F8DB5D.svg?style=flat

[badge-platform-js-node]: https://img.shields.io/badge/-nodejs-68a063.svg?style=flat

[badge-platform-linux]: http://img.shields.io/badge/-linux-2D3F6C.svg?style=flat

[badge-platform-windows]: http://img.shields.io/badge/-windows-4D76CD.svg?style=flat

[badge-platform-macos]: http://img.shields.io/badge/-macos-111111.svg?style=flat

[badge-platform-ios]: http://img.shields.io/badge/-ios-CDCDCD.svg?style=flat

[badge-platform-tvos]: http://img.shields.io/badge/-tvos-808080.svg?style=flat

[badge-platform-watchos]: http://img.shields.io/badge/-watchos-C0C0C0.svg?style=flat

[badge-platform-wasm]: https://img.shields.io/badge/-wasm-624FE8.svg?style=flat