containsRestAction

fun containsRestAction(type: LibraryType, id: String): SpotifyRestAction<Boolean>

Check if the LibraryType with id id is already saved in the current Spotify user’s ‘Your Music’ library.

Requires the SpotifyScope.USER_LIBRARY_READ scope

Api Reference

Parameters

type

The type of object (album or track)

id

The id or uri of the object

Throws

fun containsRestAction(type: LibraryType, vararg ids: String): SpotifyRestAction<List<Boolean>>

Check if one or more of LibraryType is already saved in the current Spotify user’s ‘Your Music’ library.

Requires the SpotifyScope.USER_LIBRARY_READ scope

Api Reference

Parameters

type

The type of objects (album or track)

ids

The ids or uris of the objects. Maximum 50 ids.

Throws