Class GetMultipleEpisodesRequest
- java.lang.Object
-
- de.sonallux.spotify.api.apis.episodes.GetMultipleEpisodesRequest
-
public class GetMultipleEpisodesRequest extends Object
Get Multiple Episodes requestResponse
On success, the HTTP status code in the response header is
200OK and the response body contains an object whose key isepisodesand whose value is an array of episode objects in JSON format.Objects are returned in the order requested. If an object is not found, a
nullvalue is returned in the appropriate position. Duplicateidsin the query will result in duplicate objects in the response. If an episode is unavailable in the givenmarket, anullvalue is returned. On error, the header status code is an error code and the response body contains an error object.
-
-
Constructor Summary
Constructors Constructor Description GetMultipleEpisodesRequest(ApiClient apiClient, String ids)Get Multiple Episodes request
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiCall<Episodes>build()Build the request into an executable callGetMultipleEpisodesRequestmarket(String market)
-
-
-
Constructor Detail
-
GetMultipleEpisodesRequest
public GetMultipleEpisodesRequest(ApiClient apiClient, String ids)
Get Multiple Episodes request
- Parameters:
apiClient-The API client
ids-A comma-separated list of the Spotify IDs for the episodes. Maximum: 50 IDs.
-
-
Method Detail
-
market
public GetMultipleEpisodesRequest market(String market)
An ISO 3166-1 alpha-2 country code. 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.
-
-