Class UsersApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckCurrentUserFollows(String type, String ids) Check If User Follows Artists or UserscheckIfUserFollowsPlaylist(String playlistId, String ids) Check if Users Follow PlaylistfollowArtistsUsers(String type, List<String> ids) Follow Artists or UsersfollowPlaylist(String playlistId) Follow PlaylistGet Current User's ProfilegetFollowed(String type) Get Followed ArtistsgetUsersProfile(String userId) Get User's ProfileGet User's Top ArtistsGet User's Top TracksunfollowArtistsUsers(String type, List<String> ids) Unfollow Artists or UsersunfollowPlaylist(String playlistId) Unfollow Playlist
-
Constructor Details
-
UsersApi
public UsersApi()
-
-
Method Details
-
checkCurrentUserFollows
Check If User Follows Artists or Users
Check to see if the current user is following one or more artists or other Spotify users.
- Parameters:
type-The ID type: either
artistoruser.ids-A comma-separated list of the artist or the user Spotify IDs to check. For example:
ids=74ASZWbe4lXaubB36ztrGX,08td7MxkoHQkXnWAYD8d6Q. A maximum of 50 IDs can be sent in one request.- Returns:
- a
CheckCurrentUserFollowsRequestobject to build and execute the request
-
checkIfUserFollowsPlaylist
Check if Users Follow Playlist
Check to see if one or more Spotify users are following a specified playlist.
- Parameters:
playlistId-The Spotify ID of the playlist.
ids-A comma-separated list of Spotify User IDs ; the ids of the users that you want to check to see if they follow the playlist. Maximum: 5 ids.
- Returns:
- a
CheckIfUserFollowsPlaylistRequestobject to build and execute the request
-
followArtistsUsers
Follow Artists or Users
Add the current user as a follower of one or more artists or other Spotify users.
- Parameters:
type-The ID type.
ids-A JSON array of the artist or user Spotify IDs. For example:
{ids:["74ASZWbe4lXaubB36ztrGX", "08td7MxkoHQkXnWAYD8d6Q"]}. A maximum of 50 IDs can be sent in one request. Note: if theidsparameter is present in the query string, any IDs listed here in the body will be ignored.- Returns:
- a
FollowArtistsUsersRequestobject to build and execute the request
-
followPlaylist
Follow Playlist
Add the current user as a follower of a playlist.
- Parameters:
playlistId-The Spotify ID of the playlist.
- Returns:
- a
FollowPlaylistRequestobject to build and execute the request
-
getCurrentUsersProfile
Get Current User's Profile
Get detailed profile information about the current user (including the current user's username).
- Returns:
- a
GetCurrentUsersProfileRequestobject to build and execute the request
-
getFollowed
Get Followed Artists
Get the current user's followed artists.
- Parameters:
type-The ID type: currently only
artistis supported.- Returns:
- a
GetFollowedRequestobject to build and execute the request
-
getUsersProfile
Get User's Profile
Get public profile information about a Spotify user.
- Parameters:
userId-The user's Spotify user ID.
- Returns:
- a
GetUsersProfileRequestobject to build and execute the request
-
getUsersTopArtists
Get User's Top Artists
Get the current user's top artists based on calculated affinity.
- Returns:
- a
GetUsersTopArtistsRequestobject to build and execute the request
-
getUsersTopTracks
Get User's Top Tracks
Get the current user's top tracks based on calculated affinity.
- Returns:
- a
GetUsersTopTracksRequestobject to build and execute the request
-
unfollowArtistsUsers
Unfollow Artists or Users
Remove the current user as a follower of one or more artists or other Spotify users.
- Parameters:
type-The ID type: either
artistoruser.ids-A JSON array of the artist or user Spotify IDs. For example:
{ids:["74ASZWbe4lXaubB36ztrGX", "08td7MxkoHQkXnWAYD8d6Q"]}. A maximum of 50 IDs can be sent in one request. Note: if theidsparameter is present in the query string, any IDs listed here in the body will be ignored.- Returns:
- a
UnfollowArtistsUsersRequestobject to build and execute the request
-
unfollowPlaylist
Unfollow Playlist
Remove the current user as a follower of a playlist.
- Parameters:
playlistId-The Spotify ID of the playlist.
- Returns:
- a
UnfollowPlaylistRequestobject to build and execute the request
-