[英]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.