我注意到我使用SoundcloudPHP编写的一些代码今天停止了身份验证,尽管上次我几天前使用它时工作正常.为了解决这个问题,我一直在尝试使用/ oauth2/token端点进行身份验证,但响应是401并且是空体.我一直在使用https://developers.soundcloud.com/docs/api/reference#token页面上的卷曲
从命令行:
curl -v -X POST "https://api.soundcloud.com/oauth2/token" -F 'client_id=MY_ID' -F 'client_secret=MY_SECRET' -F 'grant_type=authorization_code' -F 'redirect_uri=MY_REDIRECT' -F 'code=0000000EYAA1CRGodSoKJ9WsdhqVQr3g'
Run Code Online (Sandbox Code Playgroud)
响应:
* About to connect() to api.soundcloud.com port 443 (#0)
* Trying 72.21.91.127... connected
* Connected to api.soundcloud.com (72.21.91.127) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14): …Run Code Online (Sandbox Code Playgroud) soundcloud ×1