LibreTube/app/src/main/java/xyz/btcland/libretube/PipedApi.kt

15 lines
421 B
Kotlin
Raw Normal View History

2021-12-18 16:34:14 +05:30
package xyz.btcland.libretube
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query
import xyz.btcland.libretube.obj.StreamItem
import xyz.btcland.libretube.obj.Streams
interface PipedApi {
@GET("trending")
suspend fun getTrending(@Query("region") region: String): List<StreamItem>
@GET("streams/{videoId}")
suspend fun getStreams(@Path("videoId") videoId: String): Streams
}