public static final class GetShowsEpisodesRequest.Builder extends AbstractDataPagingRequest.Builder<EpisodeSimplified,GetShowsEpisodesRequest.Builder>
GetShowsEpisodesRequest.| Constructor and Description |
|---|
Builder(String accessToken)
Create a new
GetShowsEpisodesRequest.Builder instance. |
| Modifier and Type | Method and Description |
|---|---|
GetShowsEpisodesRequest |
build()
The request build method.
|
GetShowsEpisodesRequest.Builder |
id(String id)
The show ID setter.
|
GetShowsEpisodesRequest.Builder |
limit(Integer limit)
The limit setter.
|
GetShowsEpisodesRequest.Builder |
market(com.neovisionaries.i18n.CountryCode market)
The market country code setter.
|
GetShowsEpisodesRequest.Builder |
offset(Integer offset)
The offset setter.
|
protected GetShowsEpisodesRequest.Builder |
self()
Return this instance to simulate a self-type.
|
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)
GetShowsEpisodesRequest.Builder instance.
Reading the user’s resume points on episode objects requires the user-read-playback-position scope.
accessToken - Required. A valid access token from the Spotify Accounts service.public GetShowsEpisodesRequest.Builder id(String id)
id - The Spotify ID for the show.GetShowsEpisodesRequest.Builder.public GetShowsEpisodesRequest.Builder limit(Integer limit)
limit - Optional. The maximum number of episodes to return. Default: 20. Minimum: 1. Maximum: 50.GetShowsEpisodesRequest.Builder.public GetShowsEpisodesRequest.Builder offset(Integer offset)
offset - Optional. The index of the first episode to return. Default: 0 (i.e., the first object). Use with
limit(Integer) to get the next set of objects.GetShowsEpisodesRequest.Builder.public GetShowsEpisodesRequest.Builder market(com.neovisionaries.i18n.CountryCode market)
If a country code is specified, only shows and episodes that are 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.
market - Optional. An ISO 3166-1 alpha-2 country code.GetShowsEpisodesRequest.Builder.public GetShowsEpisodesRequest build()
GetShowsEpisodesRequest.protected GetShowsEpisodesRequest.Builder self()
AbstractRequest.Builderself in class AbstractRequest.Builder<Paging<EpisodeSimplified>,GetShowsEpisodesRequest.Builder>Copyright © 2020. All rights reserved.