Class GetArtistsAlbumsRequest
Get Artist's Albums request
Response
Pages of albums
-
Constructor Summary
ConstructorsConstructorDescriptionGetArtistsAlbumsRequest(ApiClient apiClient, String id) Get Artist's Albums request -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the request into an executable api callincludeGroups(String includeGroups) limit(int limit) offset(int offset)
-
Constructor Details
-
GetArtistsAlbumsRequest
Get Artist's Albums request- Parameters:
apiClient-The API client
id-The Spotify ID of the artist.
-
-
Method Details
-
includeGroups
- Parameters:
includeGroups-A comma-separated list of keywords that will be used to filter the response. If not supplied, all album types will be returned.
Valid values are:
-album
-single
-appears_on
-compilation
For example:include_groups=album,single.- Returns:
- this request
-
market
- Parameters:
market-An ISO 3166-1 alpha-2 country code. If a country code is specified, only content that is available in that market will be returned.
If a valid user access token is specified in the request header, the country associated with the user account will take priority over this parameter.
Note: If neither market or user country are provided, the content is considered unavailable for the client.
Users can view the country that is associated with their account in the account settings.- Returns:
- this request
-
limit
- Parameters:
limit-The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
- Returns:
- this request
-
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
-