mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-11 01:10:45 +00:00
Getting Started Clarifications and Example Code File (#904)
* added URI link to README getting started * revised comment * added alternate module installation instruction * installation troubleshooting comment * scope clarification comment * added playlist_add_items.py to examples folder * reformatted changelog edits * Relocated added contributions to added section in Changelog * removed unnecessary library installation instruction * Clarified alternative installation instruction
This commit is contained in:
1 parent
1377879972
commit
edd3f29a2c
4 files changed
+26
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# Add a list of items (URI) to a playlist (URI)
|
||||
|
||||
import spotipy
|
||||
from spotipy.oauth2 import SpotifyOAuth
|
||||
|
||||
sp = spotipy.Spotify(auth_manager=SpotifyOAuth(client_id="YOUR_APP_CLIENT_ID",
|
||||
client_secret="YOUR_APP_CLIENT_SECRET",
|
||||
redirect_uri="YOUR_APP_REDIRECT_URI",
|
||||
scope="playlist-modify-private"
|
||||
))
|
||||
|
||||
sp.playlist_add_items('playlist_id', ['list_of_items'])
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# shows artist info for a URN or URL
|
||||
# scope is not required for this function
|
||||
|
||||
from spotipy.oauth2 import SpotifyClientCredentials
|
||||
import spotipy
|
||||
|
||||
Reference in new issue
Block a user