ClientFollowingApi

These endpoints allow you manage the artists, users and playlists that a Spotify user follows.

Api Reference

Constructors

Link copied to clipboard
constructor(api: GenericSpotifyApi)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun areFollowingPlaylist(playlist: String, vararg users: String): List<Boolean>

Check to see if one or more Spotify users are following a specified playlist.

Link copied to clipboard
suspend fun followArtist(artistId: String)

Add the current user as a follower of an artist

Link copied to clipboard
suspend fun followArtists(vararg artists: String)

Add the current user as a follower of other artists

Link copied to clipboard
suspend fun followPlaylist(playlist: String, followPublicly: Boolean = true): String

Add the current user as a follower of a playlist.

Link copied to clipboard
suspend fun followUser(user: String)

Add the current user as a follower of another user

Link copied to clipboard
suspend fun followUsers(vararg users: String)

Add the current user as a follower of other users

Link copied to clipboard
suspend fun getFollowedArtists(limit: Int? = api.spotifyApiOptions.defaultLimit, after: String? = null): CursorBasedPagingObject<Artist>

Get the current user’s followed artists.

Link copied to clipboard
suspend fun isFollowingArtist(artist: String): Boolean

Check to see if the current user is following a Spotify artist.

Link copied to clipboard
suspend fun isFollowingArtists(vararg artists: String): List<Boolean>

Check to see if the current user is following one or more artists.

Link copied to clipboard
suspend fun isFollowingPlaylist(playlistId: String): Boolean

Check to see if the current Spotify user is following the specified playlist.

suspend fun isFollowingPlaylist(playlist: String, user: String): Boolean

Check to see if a specific Spotify user is following the specified playlist.

Link copied to clipboard
suspend fun isFollowingUser(user: String): Boolean

Check to see if the current user is following another Spotify user.

Link copied to clipboard
suspend fun isFollowingUsers(vararg users: String): List<Boolean>

Check to see if the current user is following one or more other Spotify users.

Link copied to clipboard
suspend fun unfollowArtist(artist: String)

Remove the current user as a follower of an artist

Link copied to clipboard
suspend fun unfollowArtists(vararg artists: String)

Remove the current user as a follower of artists

Link copied to clipboard
suspend fun unfollowPlaylist(playlist: String): String

Remove the current user as a follower of a playlist.

Link copied to clipboard
suspend fun unfollowUser(user: String)

Remove the current user as a follower of another user

Link copied to clipboard
suspend fun unfollowUsers(vararg users: String)

Remove the current user as a follower of other users