public static final class GetEpisodeRequest.Builder extends AbstractDataRequest.Builder<Episode,GetEpisodeRequest.Builder>
GetEpisodeRequest.| Constructor and Description |
|---|
Builder(String accessToken)
Create a new
GetEpisodeRequest.Builder. |
| Modifier and Type | Method and Description |
|---|---|
GetEpisodeRequest |
build()
The request build method.
|
GetEpisodeRequest.Builder |
id(String id)
The episode ID setter.
|
GetEpisodeRequest.Builder |
market(com.neovisionaries.i18n.CountryCode market)
The market country code setter.
|
protected GetEpisodeRequest.Builder |
self()
Return this instance to simulate a self-type.
|
setBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setSchemepublic Builder(String accessToken)
GetEpisodeRequest.Builder.
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 GetEpisodeRequest.Builder id(String id)
id - The Spotify ID for the episode.GetEpisodeRequest.Builder.public GetEpisodeRequest.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.GetEpisodeRequest.Builder.public GetEpisodeRequest build()
GetEpisodeRequest.protected GetEpisodeRequest.Builder self()
AbstractRequest.Builderself in class AbstractRequest.Builder<Episode,GetEpisodeRequest.Builder>Copyright © 2020. All rights reserved.