Class AlbumsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCheck User's Saved AlbumsGet AlbumGet Album TracksgetMultipleAlbums(String ids) Get Several AlbumsGet New ReleasesGet User's Saved AlbumsremoveAlbumsUser(List<String> ids) Remove Users' Saved AlbumssaveAlbumsUser(List<String> ids) Save Albums for Current User
-
Constructor Details
-
AlbumsApi
public AlbumsApi()
-
-
Method Details
-
checkUsersSavedAlbums
Check User's Saved Albums
Check if one or more albums is already saved in the current Spotify user's 'Your Music' library.
- Parameters:
ids-A comma-separated list of the Spotify IDs for the albums. Maximum: 20 IDs.
- Returns:
- a
CheckUsersSavedAlbumsRequestobject to build and execute the request
-
getAlbum
Get Album
Get Spotify catalog information for a single album.
- Parameters:
id-The Spotify ID of the album.
- Returns:
- a
GetAlbumRequestobject to build and execute the request
-
getAlbumsTracks
Get Album Tracks
Get Spotify catalog information about an album’s tracks. Optional parameters can be used to limit the number of tracks returned.
- Parameters:
id-The Spotify ID of the album.
- Returns:
- a
GetAlbumsTracksRequestobject to build and execute the request
-
getMultipleAlbums
Get Several Albums
Get Spotify catalog information for multiple albums identified by their Spotify IDs.
- Parameters:
ids-A comma-separated list of the Spotify IDs for the albums. Maximum: 20 IDs.
- Returns:
- a
GetMultipleAlbumsRequestobject to build and execute the request
-
getNewReleases
Get New Releases
Get a list of new album releases featured in Spotify (shown, for example, on a Spotify player’s “Browse” tab).
- Returns:
- a
GetNewReleasesRequestobject to build and execute the request
-
getUsersSavedAlbums
Get User's Saved Albums
Get a list of the albums saved in the current Spotify user's 'Your Music' library.
- Returns:
- a
GetUsersSavedAlbumsRequestobject to build and execute the request
-
removeAlbumsUser
Remove Users' Saved Albums
Remove one or more albums from the current user's 'Your Music' library.
- Parameters:
ids-A JSON array of the Spotify IDs. For example:
["4iV5W9uYEdYUVa79Axb7Rh", "1301WleyT98MSxVHPZCA6M"]
A maximum of 50 items can be specified in one request. Note: if theidsparameter is present in the query string, any IDs listed here in the body will be ignored.- Returns:
- a
RemoveAlbumsUserRequestobject to build and execute the request
-
saveAlbumsUser
Save Albums for Current User
Save one or more albums to the current user's 'Your Music' library.
- Parameters:
ids-A JSON array of the Spotify IDs. For example:
["4iV5W9uYEdYUVa79Axb7Rh", "1301WleyT98MSxVHPZCA6M"]
A maximum of 50 items can be specified in one request. Note: if theidsparameter is present in the query string, any IDs listed here in the body will be ignored.- Returns:
- a
SaveAlbumsUserRequestobject to build and execute the request
-