Class GetArtistsTopTracksRequest


  • public class GetArtistsTopTracksRequest
    extends Object
    Get an Artist's Top Tracks request

    Response

    On success, the HTTP status code in the response header is 200 OK and the response body contains an object whose key is "tracks" and whose value is an array of up to 10 track objects in JSON format. On error, the header status code is an error code and the response body contains an error object.

    • Constructor Detail

      • GetArtistsTopTracksRequest

        public GetArtistsTopTracksRequest​(ApiClient apiClient,
                                          String id,
                                          String market)

        Get an Artist's Top Tracks request

        Parameters:
        apiClient -

        The API client

        id -

        The Spotify ID for the artist

        market -

        An ISO 3166-1 alpha-2 country code or the string from_token. Synonym for country.

    • Method Detail

      • build

        public ApiCall<Tracks> build()
        Build the request into an executable call