Agregar script para interactuar con la API de Spotify

This commit is contained in:
Juanjo 2024-12-03 10:10:20 +01:00
parent ad78ce307a
commit ff51fa8ff2
1 changed files with 16 additions and 0 deletions

16
apirest/spotify.py Normal file
View File

@ -0,0 +1,16 @@
import spotipy
from pprint import pprint
def main():
spotify = spotipy.Spotify(auth_manager=spotipy.SpotifyOAuth())
me = spotify.me()
pprint(me)
if __name__ == "__main__":
main()