From ff51fa8ff2f6f2d6ecf97482639748f3051d237f Mon Sep 17 00:00:00 2001 From: Juanjo Date: Tue, 3 Dec 2024 10:10:20 +0100 Subject: [PATCH] Agregar script para interactuar con la API de Spotify --- apirest/spotify.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 apirest/spotify.py diff --git a/apirest/spotify.py b/apirest/spotify.py new file mode 100644 index 0000000..e4d65d3 --- /dev/null +++ b/apirest/spotify.py @@ -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() + + + +