mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-05 07:27:47 +00:00
commit
7d284dbeab
@ -206,6 +206,8 @@ class Spotify(object):
|
||||
def user_playlist(self, user, playlist_id, fields=None):
|
||||
''' Gets playlist of a user
|
||||
'''
|
||||
if playlist_id == None:
|
||||
return self.get("users/%s/starred" % (user), fields=fields)
|
||||
return self.get("users/%s/playlists/%s" % (user, playlist_id), fields=fields)
|
||||
|
||||
def user_playlist_create(self, user, name, public=True):
|
||||
|
Loading…
Reference in New Issue
Block a user