Spotify

Python Spotipy:在创建私人播放列表时,尽管已经使用playlist-modify-private,仍然出现“Insufficient Scope”错误

我正在尝试使用Spotify Web API(通过Python的 spotipy 库)创建一个私人播放列表,但遇到了授权错误。 问题 当我运行我的脚本时,我收到一个 403 Forbidden 错误。有人建议检查作用域,特别是 playlist-modify-private。 我的代码 Python import spotipy from spotipy.oauth2 import SpotifyOAuth # My current scope setup scope = "playlist-modify

为什么现在不能免费使用Spotify的 Web API了?

我一直在开发一个Python应用,需要调用Spotify API并访问用户的播放列表以及其中的条目。 以下是代码: import os import base64 from requests import post, get import json clientid = "why would you want to see it" clientsecret = "no" def getToken(): auth_string = clientid + ":" + clientsecret auth_byt

为什么在尝试创建播放列表时,Spotify会返回403错误?

我在尝试使用我的账户创建播放列表时遇到了这个错误。当我尝试用命令 python3 spotifyv2.py {user_name} 运行代码时,它给我这个错误: HTTP Error for POST to https://api.spotify.com/v1/users/test/playlists with Params: {} returned 403 due to You cannot create a playlist for another user Traceback (most recen