[英]PHP & Dropbox API - Error Fatal error: Uncaught Dropbox\Exception_BadRequest: HTTP status 400 {“error”: “v1_retired”}
I was having an error when i put $client->getAccountInfo();
当我放入
$client->getAccountInfo();
时出现错误$client->getAccountInfo();
and error is showing. 并且显示错误。 Error Fatal error: Uncaught Dropbox\\Exception_BadRequest: HTTP status 400 {"error": "v1_retired"}
错误致命错误:未捕获的Dropbox \\ Exception_BadRequest:HTTP状态400 {“ error”:“ v1_retired”}
here is my composer 这是我的作曲家
{
"require": {
"dropbox/dropbox-sdk": "1.1.*"
}
}
I know that the problem was the dropbox-sdk version but when I change the 1.1.*
to 2.*
nthing is installed in the composer. 我知道问题出在dropbox-sdk版本上,但是当我将
1.1.*
更改为2.*
,在作曲家中安装了nthing。 help please how can I solve this error and if possible how can i install the v2 ? 帮助请如何解决此错误,如果可能,如何安装v2?
The v1_retired
error does indicate that you're calling the retired Dropbox API v1 . v1_retired
错误确实表明您正在调用退休的Dropbox API v1 。 You should use Dropbox API v2 instead. 您应该改用Dropbox API v2 。
Nothing is installed when you specify '2.*' for that library, because there is no v2 version of it . 为该库指定“ 2. *”时, 不会安装任何内容 ,因为它没有v2版本 。
Dropbox doesn't offer an official PHP SDK for Dropbox API v2, but you can use a third party library , or you can call the HTTPS endpoints themselves . Dropbox没有为Dropbox API v2提供正式的PHP SDK,但是您可以使用第三方库 ,也可以自己调用HTTPS端点 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.