All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.app.moviebase.tmdb.api.TmdbCompaniesApi.kt Maven / Gradle / Ivy

The newest version!
package app.moviebase.tmdb.api

import app.moviebase.tmdb.model.TmdbCompanyDetail
import app.moviebase.tmdb.core.endPointV3
import io.ktor.client.*
import io.ktor.client.call.*
import io.ktor.client.request.*

class TmdbCompaniesApi internal constructor(private val client: HttpClient) {

    suspend fun getDetails(companyId: Int): TmdbCompanyDetail = client.get {
        endPointV3("company", companyId.toString())
    }.body()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy