Class GetInformationAboutUsersCurrentPlaybackRequest
- java.lang.Object
-
- de.sonallux.spotify.api.apis.player.GetInformationAboutUsersCurrentPlaybackRequest
-
public class GetInformationAboutUsersCurrentPlaybackRequest extends Object
Get Information About The User's Current Playback requestRequired OAuth scopes
user-read-playback-stateResponse
A successful request will return a
200 OKresponse code with a json payload that contains information about the current playback. The information returned is for the last known state, which means an inactive device could be returned if it was the last one to execute playback. When no available devices are found, the request will return a200 OKresponse but with no data populated.
-
-
Constructor Summary
Constructors Constructor Description GetInformationAboutUsersCurrentPlaybackRequest(ApiClient apiClient)Get Information About The User's Current Playback request
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetInformationAboutUsersCurrentPlaybackRequestadditionalTypes(String additionalTypes)A comma-separated list of item types that your client supports besides the defaulttracktype.ApiCall<CurrentlyPlayingContext>build()Build the request into an executable callGetInformationAboutUsersCurrentPlaybackRequestmarket(String market)An ISO 3166-1 alpha-2 country code or the stringfrom_token.
-
-
-
Constructor Detail
-
GetInformationAboutUsersCurrentPlaybackRequest
public GetInformationAboutUsersCurrentPlaybackRequest(ApiClient apiClient)
Get Information About The User's Current Playback request
- Parameters:
apiClient-The API client
-
-
Method Detail
-
market
public GetInformationAboutUsersCurrentPlaybackRequest market(String market)
An ISO 3166-1 alpha-2 country code or the string
from_token. Provide this parameter if you want to apply Track Relinking.
-
additionalTypes
public GetInformationAboutUsersCurrentPlaybackRequest additionalTypes(String additionalTypes)
A comma-separated list of item types that your client supports besides the default
tracktype. Valid types are:trackandepisode. An unsupported type in the response is expected to be represented asnullvalue in theitemfield. Note: This parameter was introduced to allow existing clients to maintain their current behaviour and might be deprecated in the future. In addition to providing this parameter, make sure that your client properly handles cases of new
-
build
public ApiCall<CurrentlyPlayingContext> build()
Build the request into an executable call
-
-