Skip to content

Commit d59529e

Browse files
committed
write album api sample
1 parent 9ef9e63 commit d59529e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

samples/src/main/kotlin/public/AlbumApiSample.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,10 @@ fun main() {
1313
// get album "Kids in Love" by the Mowgli's release date
1414
println(api.albums.getAlbum("spotify:album:4M2p2BIRHIeBu8Ew9IBQ0s").complete()!!.releaseDate)
1515

16-
//
16+
// get album "Kids in Love" and a non-existant album
17+
println(api.albums.getAlbums("spotify:album:4M2p2BIRHIeBu8Ew9IBQ0s", "nonexistantalbum"))
18+
19+
// get album "Kids in Love"'s tracks
20+
println(api.albums.getAlbumTracks("spotify:album:4M2p2BIRHIeBu8Ew9IBQ0s").complete().map { it.name })
21+
1722
}

0 commit comments

Comments
 (0)