0

I know there have been multiple questions regarding this issue... however, I'm not sure how to handle my case.

I am using spotipy to access the Spotify API. In my python notebook, I entered:

util.prompt_for_user_token('<user_id>',client_id='<client_id>',client_secret='<client_secret>',redirect_uri='localhost:3000/callback/')

On the spotify developer website, I have listed localhost:3000/callback/ as my redirect URL.

When I run the prompt, I am redirected to the spotify page where I would click 'okay' to authorize the account. However, each time I click the 'okay' button, nothing happens. Tried using a separate browser, tried restarting my computer... I'm not sure what to do.

Thank you!

4

1 回答 1

1

重定向后,库应提示您复制重定向到的 URL 并将其粘贴回您的 python 笔记本中。然后它从 URL 中获取访问令牌并使用它进行身份验证。

于 2018-10-22T14:08:39.803 回答