public static final class GetUsersTopArtistsRequest.Builder extends AbstractDataPagingRequest.Builder<Artist,GetUsersTopArtistsRequest.Builder>
GetUsersTopArtistsRequest.| Constructor and Description |
|---|
Builder(String accessToken)
Create a new
GetUsersTopArtistsRequest.Builder instance. |
| Modifier and Type | Method and Description |
|---|---|
GetUsersTopArtistsRequest |
build()
The request build method.
|
GetUsersTopArtistsRequest.Builder |
limit(Integer limit)
The limit setter.
|
GetUsersTopArtistsRequest.Builder |
offset(Integer offset)
The offset setter.
|
protected GetUsersTopArtistsRequest.Builder |
self()
Return this instance to simulate a self-type.
|
GetUsersTopArtistsRequest.Builder |
time_range(String time_range)
The time range setter.
|
setBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setSchemeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setSchemepublic Builder(String accessToken)
GetUsersTopArtistsRequest.Builder instance.
Getting details of a user's top artists requires authorization of the user-top-read scope.
accessToken - Required. A valid access token from the Spotify Accounts service.public GetUsersTopArtistsRequest.Builder limit(Integer limit)
limit - Optional. The number of entities to return. Default: 20. Minimum: 1. Maximum: 50.GetUsersTopArtistsRequest.Builder.public GetUsersTopArtistsRequest.Builder offset(Integer offset)
offset - Optional. The index of the first entity to return. Default: 0 (i.e., the first track). Use with
limit(Integer) to get the next set of entities.GetUsersTopArtistsRequest.Builder.public GetUsersTopArtistsRequest.Builder time_range(String time_range)
time_range - Optional. Over what time frame the affinities are computed. Valid values: long_term
(calculated from several years of data and including all new data as it becomes available),
medium_term (approximately last 6 months), short_term (approximately last 4
weeks). Default: medium_term.GetUsersTopArtistsRequest.Builder.public GetUsersTopArtistsRequest build()
GetUsersTopArtistsRequest.protected GetUsersTopArtistsRequest.Builder self()
AbstractRequest.Builderself in class AbstractRequest.Builder<Paging<Artist>,GetUsersTopArtistsRequest.Builder>Copyright © 2020. All rights reserved.