簡體   English   中英

Spotifyr錯誤:INVALID_CLIENT:無效的重定向URI

[英]Spotifyr Error: INVALID_CLIENT: Invalid redirect URI

我正在嘗試使用spotifyr包從Spotify提取數據,但是任何需要訪問令牌的函數均無法正常工作(例如get_my_recently_played(limit = 5))。 運行它時出現以下錯誤:INVALID_CLIENT:無效的重定向URI。

我什至嘗試轉到“我的應用程序”並將“重定向URI”更改為“ http:// localhost:8888 / callback / ”,但仍然會出現相同的錯誤。 我在這里可能會缺少什么? 謝謝!

你有沒有嘗試過:

Sys.setenv(SPOTIFY_CLIENT_ID = 'xxxxxxxxxxxxxxxxxxxxx')
Sys.setenv(SPOTIFY_CLIENT_SECRET = 'xxxxxxxxxxxxxxxxxxxxx')

access_token <- get_spotify_access_token()

根據https://github.com/charlie86/spotifyr上的自述文件?

更新:

This works for me with the version of `spotifyr` available on CRAN
Sys.setenv(SPOTIFY_CLIENT_ID = 'your_client_id_here')
Sys.setenv(SPOTIFY_CLIENT_SECRET = 'your_client_secret_here')

access_token <- get_spotify_access_token()

library(spotifyr)

get_artist_audio_features('the beatles')

嘗試在Spotify API客戶端設置中將此重定向URL設置為http:// localhost:1410 /

我遇到了同樣的問題,此URL現在適用於我

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM