KtorService

internal class KtorService(ktorEngine: () -> HttpClientEngine, ktorLogger: () -> Logger, logLevel: () -> LogLevel, authStorage: AuthStorage)(source)

Ktor service is responsible to provide the client to call the Spotify APIs.

Parameters

ktorEngine
ktorLogger
logLevel

Constructors

Link copied to clipboard
constructor(ktorEngine: () -> HttpClientEngine, ktorLogger: () -> Logger, logLevel: () -> LogLevel, authStorage: AuthStorage)

Types

Link copied to clipboard
@Serializable
internal data class TokenResponse(val accessToken: String, val tokenType: String, val expiresIn: Long)

Properties

Link copied to clipboard
val client: HttpClient