Class GetEpisodeRequest

java.lang.Object
de.sonallux.spotify.api.apis.episodes.GetEpisodeRequest

public class GetEpisodeRequest extends Object

Get Episode request

Required OAuth scopes

user-read-playback-position

Response

An episode

  • Constructor Details

    • GetEpisodeRequest

      public GetEpisodeRequest(ApiClient apiClient, String id)
      Get Episode request
      Parameters:
      apiClient -

      The API client

      id -

      The Spotify ID for the episode.

  • Method Details

    • market

      public GetEpisodeRequest market(String 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
    • build

      public ApiCall<Episode> build()
      Build the request into an executable api call
      Returns:
      an executable api call