Class AlbumsApi

java.lang.Object
de.sonallux.spotify.api.apis.AlbumsApi

public class AlbumsApi extends Object
Albums
  • Constructor Details

    • AlbumsApi

      public AlbumsApi()
  • Method Details

    • checkUsersSavedAlbums

      public CheckUsersSavedAlbumsRequest checkUsersSavedAlbums(String ids)

      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 CheckUsersSavedAlbumsRequest object to build and execute the request
    • getAlbum

      public GetAlbumRequest getAlbum(String id)

      Get Album

      Get Spotify catalog information for a single album.

      Parameters:
      id -

      The Spotify ID of the album.

      Returns:
      a GetAlbumRequest object to build and execute the request
    • getAlbumsTracks

      public GetAlbumsTracksRequest getAlbumsTracks(String id)

      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 GetAlbumsTracksRequest object to build and execute the request
    • getMultipleAlbums

      public GetMultipleAlbumsRequest getMultipleAlbums(String ids)

      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 GetMultipleAlbumsRequest object to build and execute the request
    • getNewReleases

      public GetNewReleasesRequest 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 GetNewReleasesRequest object to build and execute the request
    • getUsersSavedAlbums

      public GetUsersSavedAlbumsRequest getUsersSavedAlbums()

      Get User's Saved Albums

      Get a list of the albums saved in the current Spotify user's 'Your Music' library.

      Returns:
      a GetUsersSavedAlbumsRequest object to build and execute the request
    • removeAlbumsUser

      public RemoveAlbumsUserRequest removeAlbumsUser(List<String> ids)

      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 the ids parameter is present in the query string, any IDs listed here in the body will be ignored.

      Returns:
      a RemoveAlbumsUserRequest object to build and execute the request
    • saveAlbumsUser

      public SaveAlbumsUserRequest saveAlbumsUser(List<String> ids)

      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 the ids parameter is present in the query string, any IDs listed here in the body will be ignored.

      Returns:
      a SaveAlbumsUserRequest object to build and execute the request