Kotify
Advanced coroutine-based Spotify API wrapper for Kotlin.
Contens
TODO
Authentication
Albums
Artists
Shows
Episodes
Tracks
Search
Users:
Playlists:
Categories
Genres
Player
Markets
Prerequisites
This package has the following requirements:
Getting started
Configure the Kotify instance and execute requests:
suspend fun main() {
val kotify = Kotify(
clientId = "Spotify Client ID",
clientSecret = "Spotify Client Secret"
)
val playlist: Playlist = kotify.playlists.get("37i9dQZF1DZ06evO30uMeI")
val items: List<Item> = kotify.playlists.retrieveAllTracks(playlist)
val tracks: List<Track> = items.map { it.track }
val track = kotify.tracks.get("0ked784BOZ1JtRVHux98jE")
}
Download
repositories {
mavenCentral()
}
dependencies {
implementation("tv.blademaker:kotify:${VERSION}")
}