简体   繁体   English

PHP和Dropbox API-错误致命错误:未捕获的Dropbox \\ Exception_BadRequest:HTTP状态400 {“错误”:“ v1_retired”}

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

相关问题 Dropbox API:HTTP 状态 400 {"error": "v1_retired"} - Dropbox API: HTTP status 400 {"error": "v1_retired"} 如何为Dropbox API解决Dropbox {“错误”:“ v1_retired”} - How to Solve Dropbox {“error”: “v1_retired”} for the Dropbox API 致命错误:未捕获的 Elasticsearch\\Common\\Exceptions\\BadRequest400Exception - Fatal error: Uncaught Elasticsearch\Common\Exceptions\BadRequest400Exception Dropbox API V2上传文件错误PHP-Laravel - Dropbox API V2 Upload file Error PHP-Laravel Dropbox API错误发生 - Dropbox API in Error occurs 致命错误:未捕获的Aws \\ Glacier \\ Exception \\ GlacierException:AWS错误代码:,状态代码:400,AWS请求 - Fatal error: Uncaught Aws\Glacier\Exception\GlacierException: AWS Error Code: , Status Code: 400, AWS Request PHP GDAX-API删除请求返回错误400“ BadRequest” - PHP GDAX-API Delete Request returning error 400 “BadRequest” PHP致命错误:带有消息的未捕获异常“异常” - PHP fatal error: Uncaught exception 'Exception' with message PHP致命错误:未捕获的异常'Exception' - PHP Fatal error: Uncaught exception 'Exception' 带有PHP的Google Spreadsheets API –致命错误:未捕获的异常 - Google Spreadsheets API with PHP – Fatal error: Uncaught exception
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM