Class GetUsersCurrentlyPlayingTrackRequest
Get Currently Playing Track request
Required OAuth scopes
user-read-currently-playing
Response
Information about the currently playing track
-
Constructor Summary
ConstructorsConstructorDescriptionGetUsersCurrentlyPlayingTrackRequest(ApiClient apiClient) Get Currently Playing Track request -
Method Summary
Modifier and TypeMethodDescriptionadditionalTypes(String additionalTypes) build()Build the request into an executable api call
-
Constructor Details
-
GetUsersCurrentlyPlayingTrackRequest
Get Currently Playing Track request- Parameters:
apiClient-The API client
-
-
Method Details
-
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
-
additionalTypes
- Parameters:
additionalTypes-A comma-separated list of item types that your client supports besides the default
tracktype. Valid types are:trackandepisode.
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 types in the future by checking against thetypefield of each object.- Returns:
- this request
-
build
Build the request into an executable api call- Returns:
- an executable api call
-