@@ -739,45 +739,23 @@ public interface SpotifyService {
739
739
* Get Spotify catalog information about an artist’s top tracks by country.
740
740
*
741
741
* @param artistId The Spotify ID for the artist.
742
- * @param options Optional parameters. For list of supported parameters see
743
- * <a href="https://developer.spotify.com/web-api/get-artists-top-tracks/">endpoint documentation</a>
744
- * @param callback Callback method
745
- * @see <a href="https://developer.spotify.com/web-api/get-artists-top-tracks/">Get an Artist’s Top Tracks</a>
746
- */
747
- @ GET ("/artists/{id}/top-tracks" )
748
- public void getArtistTopTrack (@ Path ("id" ) String artistId , @ QueryMap Map <String , Object > options , Callback <Tracks > callback );
749
-
750
- /**
751
- * Get Spotify catalog information about an artist’s top tracks by country.
752
- *
753
- * @param artistId The Spotify ID for the artist.
754
- * @param options Optional parameters. For list of supported parameters see
755
- * <a href="https://developer.spotify.com/web-api/get-artists-top-tracks/">endpoint documentation</a>
756
- * @return An object whose key is "tracks" and whose value is an array of track objects.
757
- * @see <a href="https://developer.spotify.com/web-api/get-artists-top-tracks/">Get an Artist’s Top Tracks</a>
758
- */
759
- @ GET ("/artists/{id}/top-tracks" )
760
- public Tracks getArtistTopTrack (@ Path ("id" ) String artistId , @ QueryMap Map <String , Object > options );
761
-
762
- /**
763
- * Get Spotify catalog information about an artist’s top tracks by country.
764
- *
765
- * @param artistId The Spotify ID for the artist.
742
+ * @param country The country: an ISO 3166-1 alpha-2 country code.
766
743
* @param callback Callback method
767
744
* @see <a href="https://developer.spotify.com/web-api/get-artists-top-tracks/">Get an Artist’s Top Tracks</a>
768
745
*/
769
746
@ GET ("/artists/{id}/top-tracks" )
770
- public void getArtistTopTrack (@ Path ("id" ) String artistId , Callback <Tracks > callback );
747
+ public void getArtistTopTrack (@ Path ("id" ) String artistId , @ Query ( "country" ) String country , Callback <Tracks > callback );
771
748
772
749
/**
773
750
* Get Spotify catalog information about an artist’s top tracks by country.
774
751
*
775
752
* @param artistId The Spotify ID for the artist.
753
+ * @param country The country: an ISO 3166-1 alpha-2 country code.
776
754
* @return An object whose key is "tracks" and whose value is an array of track objects.
777
755
* @see <a href="https://developer.spotify.com/web-api/get-artists-top-tracks/">Get an Artist’s Top Tracks</a>
778
756
*/
779
757
@ GET ("/artists/{id}/top-tracks" )
780
- public Tracks getArtistTopTrack (@ Path ("id" ) String artistId );
758
+ public Tracks getArtistTopTrack (@ Path ("id" ) String artistId , @ Query ( "country" ) String country );
781
759
782
760
/**
783
761
* Get Spotify catalog information about artists similar to a given artist.
0 commit comments