Class GetListOfCurrentUsersPlaylistsRequest

java.lang.Object
de.sonallux.spotify.api.apis.playlists.GetListOfCurrentUsersPlaylistsRequest

public class GetListOfCurrentUsersPlaylistsRequest extends Object

Get Current User's Playlists request

Required OAuth scopes

playlist-read-private

Response

A paged set of playlists

  • Constructor Details

    • GetListOfCurrentUsersPlaylistsRequest

      public GetListOfCurrentUsersPlaylistsRequest(ApiClient apiClient)
      Get Current User's Playlists request
      Parameters:
      apiClient -

      The API client

  • Method Details

    • limit

      public GetListOfCurrentUsersPlaylistsRequest limit(int limit)
      Parameters:
      limit -

      The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.

      Returns:
      this request
    • offset

      public GetListOfCurrentUsersPlaylistsRequest offset(int offset)
      Parameters:
      offset -

      'The index of the first playlist to return. Default: 0 (the first object). Maximum offset: 100.000. Use with limit to get the next set of playlists.'

      Returns:
      this request
    • build

      public ApiCall<Paging<SimplifiedPlaylist>> build()
      Build the request into an executable api call
      Returns:
      an executable api call