add Rest Action
fun addRestAction(type: LibraryType, id: String): SpotifyRestAction<Unit>
Content copied to clipboard
Save one of LibraryType to the current user’s ‘Your Music’ library.
Requires the SpotifyScope.USER_LIBRARY_MODIFY scope
Parameters
type
The type of object (album or track)
id
The id or uri of the object
Throws
if the id is invalid
fun addRestAction(type: LibraryType, vararg ids: String): SpotifyRestAction<Unit>
Content copied to clipboard
Save one or more of LibraryType to the current user’s ‘Your Music’ library.
Requires the SpotifyScope.USER_LIBRARY_MODIFY scope
Parameters
type
The type of objects to check against (album or track)
ids
The ids or uris of the objects. Maximum 50 ids.
Throws
if any of the provided ids is invalid