Class GetNewReleasesRequest

java.lang.Object
de.sonallux.spotify.api.apis.albums.GetNewReleasesRequest

public class GetNewReleasesRequest extends Object

Get New Releases request

Response

A paged set of albums

  • Constructor Details

    • GetNewReleasesRequest

      public GetNewReleasesRequest(ApiClient apiClient)
      Get New Releases request
      Parameters:
      apiClient -

      The API client

  • Method Details

    • country

      public GetNewReleasesRequest country(String country)
      Parameters:
      country -

      A country: an ISO 3166-1 alpha-2 country code. Provide this parameter if you want the list of returned items to be relevant to a particular country. If omitted, the returned items will be relevant to all countries.

      Returns:
      this request
    • limit

      public GetNewReleasesRequest limit(int limit)
      Parameters:
      limit -

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

      Returns:
      this request
    • offset

      public GetNewReleasesRequest 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

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