What do I do with a spotify api authentication redirect uri in Django?

后端 未结 1 1215
忘了有多久
忘了有多久 2020-12-09 13:38

I\'ve built an app in Django that uses Spotipy, a Spotify API Python Library, and uses the spotipy.util.prompt_for_user_token() command as such to generate a to

1条回答
  •  [愿得一人]
    2020-12-09 14:24

    To implement this I ended up abandoning the spotipy module all together and just using javascript. I see your using the user authorization api flow which is fine because your server can send your secret key securely. When moving this to the frontend of your application you can't do this and instead must use the Implicit Grant flow:

    #In your main page's 
    
                                     
                  
提交回复
热议问题