Class GetCategoriesPlaylistsRequest

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

public class GetCategoriesPlaylistsRequest extends Object

Get Category's Playlists request

Response

A paged set of playlists

  • Constructor Details

    • GetCategoriesPlaylistsRequest

      public GetCategoriesPlaylistsRequest(ApiClient apiClient, String categoryId)
      Get Category's Playlists request
      Parameters:
      apiClient -

      The API client

      categoryId -

      The Spotify category ID for the category.

  • Method Details

    • country

      public GetCategoriesPlaylistsRequest country(String country)
      Parameters:
      country -

      A country: an ISO 3166-1 alpha-2 country code. Provide this parameter to ensure that the category exists for a particular country.

      Returns:
      this request
    • limit

      public GetCategoriesPlaylistsRequest limit(int limit)
      Parameters:
      limit -

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

      Returns:
      this request
    • offset

      public GetCategoriesPlaylistsRequest offset(int offset)
      Parameters:
      offset -

      The index of the first item to return. Default: 0 (the first item). Use with limit to get the next set of items.

      Returns:
      this request
    • build

      Build the request into an executable api call
      Returns:
      an executable api call