Class GetNewReleasesRequest
- java.lang.Object
-
- de.sonallux.spotify.api.apis.browse.GetNewReleasesRequest
-
public class GetNewReleasesRequest extends Object
Get All New Releases requestResponse
On success, the HTTP status code in the response header is
200OK and the response body contains amessageand analbumsobject. Thealbumsobject contains an array of simplified album objects (wrapped in a paging object) in JSON format. On error, the header status code is an error code and the response body contains an error object.Once you have retrieved the list, you can use Get an Album's Tracks to drill down further.
The results are returned in an order reflected within the Spotify clients, and therefore may not be ordered by date.
-
-
Constructor Summary
Constructors Constructor Description GetNewReleasesRequest(ApiClient apiClient)Get All New Releases request
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiCall<NewReleases>build()Build the request into an executable callGetNewReleasesRequestcountry(String country)A country: an ISO 3166-1 alpha-2 country code.GetNewReleasesRequestlimit(int limit)The maximum number of items to return.GetNewReleasesRequestoffset(int offset)The index of the first item to return.
-
-
-
Constructor Detail
-
GetNewReleasesRequest
public GetNewReleasesRequest(ApiClient apiClient)
Get All New Releases request
- Parameters:
apiClient-The API client
-
-
Method Detail
-
country
public GetNewReleasesRequest country(String 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.
-
limit
public GetNewReleasesRequest limit(int limit)
The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
-
offset
public GetNewReleasesRequest offset(int offset)
The index of the first item to return. Default: 0 (the first object). Use with
limitto get the next set of items.
-
build
public ApiCall<NewReleases> build()
Build the request into an executable call
-
-