mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-01-06 14:52:50 +00:00
Added support for following an artist or user
This commit is contained in:
parent
7499d8e511
commit
233ba44827
@ -678,6 +678,20 @@ class Spotify(object):
|
|||||||
r = self._put('me/albums?ids=' + ','.join(alist))
|
r = self._put('me/albums?ids=' + ','.join(alist))
|
||||||
return r
|
return r
|
||||||
|
|
||||||
|
def user_follow_artists(self, ids=[]):
|
||||||
|
''' Follow one or more artists
|
||||||
|
Parameters:
|
||||||
|
- ids - a list of artist IDs
|
||||||
|
'''
|
||||||
|
return self._put('me/following?type=artist&ids=' + ','.join(ids))
|
||||||
|
|
||||||
|
def user_follow_users(self, ids=[]):
|
||||||
|
''' Follow one or more users
|
||||||
|
Parameters:
|
||||||
|
- ids - a list of user IDs
|
||||||
|
'''
|
||||||
|
return self._put('me/following?type=user&ids=' + ','.join(ids))
|
||||||
|
|
||||||
def featured_playlists(self, locale=None, country=None, timestamp=None,
|
def featured_playlists(self, locale=None, country=None, timestamp=None,
|
||||||
limit=20, offset=0):
|
limit=20, offset=0):
|
||||||
''' Get a list of Spotify featured playlists
|
''' Get a list of Spotify featured playlists
|
||||||
|
Loading…
Reference in New Issue
Block a user