Twidere-App-Android-Twitter.../twidere/src/main/kotlin/org/mariotaku/yandex/YandexAPI.kt

12 lines
400 B
Kotlin
Raw Normal View History

2020-05-13 10:36:15 +02:00
package org.mariotaku.yandex
import org.mariotaku.restfu.annotation.method.POST
import org.mariotaku.restfu.annotation.param.Query
import org.mariotaku.yandex.model.YandexTranslateResult
interface YandexAPI {
@POST("/api/v1.5/tr.json/translate")
2020-11-28 14:20:18 +01:00
@Throws(YandexException::class)
2020-05-13 10:36:15 +02:00
fun search(@Query("text") text: String,
@Query("lang") lang: String): YandexTranslateResult
}