[英]I am using php to connect to spotify's API with PHP and with the client credentials flow
[英]I'm try using Spotify PHP api
我嘗試使用 api
不幸的是,它不能很好地工作,因為它會出現這樣的錯誤
致命錯誤:未捕獲的 SpotifyWebAPI\SpotifyWebAPIAuthException:D:\Software\Development\XAMPP\htdocs\spotif\auth\vendor\jwilsson\spotify-web-api-php\src\Request.php:56 中的重定向 URI 無效 堆棧跟蹤:# 0 D:\Software\Development\XAMPP\htdocs\spotif\auth\vendor\jwilsson\spotify-web-api-php\src\Request.php(244): SpotifyWebAPI\Request->handleResponseError('{"error": "無效...', 400) #1 D:\Software\Development\XAMPP\htdocs\spotif\auth\vendor\jwilsson\spotify-web-api-php\src\Request.php(112): SpotifyWebAPI\Request ->send('POST', 'https://account...', 'client_id=48f0c...', 'HTTP/2 400 \r\nda...') #2 D:\Software\Development \XAMPP\htdocs\spotif\auth\vendor\jwilsson\spotify-web-api-php\src\Session.php(250): SpotifyWebAPI\Request->account('POST', '/api/token', 數組, Array) #3 D:\Software\Development\XAMPP\htdocs\spotif\auth\app\check.php(26): SpotifyWebAPI\Session->requestAccessToken('AQA9X84L0SDucXG...', 'a86937efa85589a...') # 4 {main} 在 D:\Software\Deve 中拋出 lopment\XAMPP\htdocs\spotif\auth\vendor\jwilsson\spotify-web-api-php\src\Request.php 在第 56 行
我嘗試用所有方法解決問題,但即使在我的 Spotify 應用程序的控制台中也是如此。
我已經把所有東西都設置好了,就像我的 PHP 代碼中的重定向 URI,我仍然得到一個錯誤。
更改redirectURI 對我沒有任何幫助。
等待幾個小時/幾天解決我的問題
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.