ClientFollowingApi

class ClientFollowingApi(api: GenericSpotifyApi) : FollowingApi

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

Api Reference

Constructors

ClientFollowingApi
Link copied to clipboard
common
fun ClientFollowingApi(api: GenericSpotifyApi)

Functions

areFollowingPlaylist
Link copied to clipboard
common
suspend fun areFollowingPlaylist(playlist: String, vararg users: String): List<Boolean>
Check to see if one or more Spotify users are following a specified playlist.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
followArtist
Link copied to clipboard
common
suspend fun followArtist(artistId: String)
Add the current user as a follower of an artistRequires the SpotifyScope.USER_FOLLOW_MODIFY scopeApi Reference
followArtists
Link copied to clipboard
common
suspend fun followArtists(vararg artists: String)
Add the current user as a follower of other artistsRequires the SpotifyScope.USER_FOLLOW_MODIFY scopeApi Reference
followPlaylist
Link copied to clipboard
common
suspend fun followPlaylist(playlist: String, followPublicly: Boolean = true): String
Add the current user as a follower of a playlist.
followUser
Link copied to clipboard
common
suspend fun followUser(user: String)
Add the current user as a follower of another userRequires the SpotifyScope.USER_FOLLOW_MODIFY scopeApi Reference
followUsers
Link copied to clipboard
common
suspend fun followUsers(vararg users: String)
Add the current user as a follower of other usersRequires the SpotifyScope.USER_FOLLOW_MODIFY scopeApi Reference
getFollowedArtists
Link copied to clipboard
common
suspend fun getFollowedArtists(limit: Int? = api.spotifyApiOptions.defaultLimit, after: String? = null): CursorBasedPagingObject<Artist>
Get the current user’s followed artists.
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
isFollowingArtist
Link copied to clipboard
common
suspend fun isFollowingArtist(artist: String): Boolean
Check to see if the current user is following a Spotify artist.
isFollowingArtists
Link copied to clipboard
common
suspend fun isFollowingArtists(vararg artists: String): List<Boolean>
Check to see if the current user is following one or more artists.
isFollowingPlaylist
Link copied to clipboard
common
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.
isFollowingUser
Link copied to clipboard
common
suspend fun isFollowingUser(user: String): Boolean
Check to see if the current user is following another Spotify user.
isFollowingUsers
Link copied to clipboard
common
suspend fun isFollowingUsers(vararg users: String): List<Boolean>
Check to see if the current user is following one or more other Spotify users.
toString
Link copied to clipboard
common
open fun toString(): String
unfollowArtist
Link copied to clipboard
common
suspend fun unfollowArtist(artist: String)
Remove the current user as a follower of an artistRequires the SpotifyScope.USER_FOLLOW_MODIFY scopeApi Reference
unfollowArtists
Link copied to clipboard
common
suspend fun unfollowArtists(vararg artists: String)
Remove the current user as a follower of artistsRequires the SpotifyScope.USER_FOLLOW_MODIFY scopeApi Reference
unfollowPlaylist
Link copied to clipboard
common
suspend fun unfollowPlaylist(playlist: String): String
Remove the current user as a follower of a playlist.
unfollowUser
Link copied to clipboard
common
suspend fun unfollowUser(user: String)
Remove the current user as a follower of another userRequires the SpotifyScope.USER_FOLLOW_MODIFY scopeApi Reference
unfollowUsers
Link copied to clipboard
common
suspend fun unfollowUsers(vararg users: String)
Remove the current user as a follower of other usersRequires the SpotifyScope.USER_FOLLOW_MODIFY scopeApi Reference

Properties

api
Link copied to clipboard
common
val api: GenericSpotifyApi
cache
Link copied to clipboard
common
val cache: SpotifyCache

Sources

(source)
Link copied to clipboard