Update docs for current_user_top_artists (#1171)

* Update docs

Add maximum value for limit parameter. See: https://developer.spotify.com/documentation/web-api/reference/get-users-top-artists-and-tracks

* Update CHANGELOG.md

---------

Co-authored-by: Stéphane Bruckert <stephane.bruckert@gmail.com>
This commit is contained in:
Michael Rossetti 2025-01-12 10:42:56 -05:00 committed by GitHub
parent ba01a6aee5
commit ca207e4f2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ Add your changes below.
### Fixed ### Fixed
- Fixed scripts in examples directory that didn't run correctly - Fixed scripts in examples directory that didn't run correctly
- Updated documentation for `Client.current_user_top_artists` to indicate maximum number of artists limit
### Removed ### Removed

View File

@ -1497,7 +1497,7 @@ class Spotify:
""" Get the current user's top artists """ Get the current user's top artists
Parameters: Parameters:
- limit - the number of entities to return - limit - the number of entities to return (max 50)
- offset - the index of the first entity to return - offset - the index of the first entity to return
- time_range - Over what time frame are the affinities computed - time_range - Over what time frame are the affinities computed
Valid-values: short_term, medium_term, long_term Valid-values: short_term, medium_term, long_term