mirror of
https://github.com/InsanusMokrassar/SauceNaoAPI.git
synced 2024-06-25 18:27:57 +00:00
17 lines
297 B
Kotlin
17 lines
297 B
Kotlin
|
package com.github.insanusmokrassar.SauceNaoAPI
|
||
|
|
||
|
import kotlinx.coroutines.runBlocking
|
||
|
|
||
|
fun main(vararg args: String) {
|
||
|
val key = args.first()
|
||
|
val api = SauceNaoAPI(key)
|
||
|
|
||
|
runBlocking {
|
||
|
api.request(
|
||
|
args[1]
|
||
|
).also {
|
||
|
println(it)
|
||
|
}
|
||
|
}
|
||
|
}
|