Android Dropbox客户端因v1停用而失败
作者:互联网
官方的Dropbox Android客户端失败并显示
Caused by com.dropbox.client2.exception.DropboxServerException
at com.dropbox.client2.RESTUtility.parseAsJSON(RESTUtility.java:265)
at com.dropbox.client2.RESTUtility.execute(RESTUtility.java:415)
at com.dropbox.client2.RESTUtility.execute(RESTUtility.java:339)
at com.dropbox.client2.RESTUtility.streamRequest(RESTUtility.java:194)
at com.dropbox.client2.RESTUtility.request(RESTUtility.java:124)
at com.dropbox.client2.DropboxAPI.metadata(DropboxAPI.java:1919)
随着DropboxServerException(nginx):400错误的请求(v1_retired)
太棒了:client2显然使用API v1.那么,在哪里可以获得使用v2的新Android客户端? https://github.com/gini/dropbox-java-sdk/tree/master/src/main/java/com/dropbox/client2存储库不包含Android专用位.
谷歌搜索Dropbox Core Android仅找到旧的v1 API:https://www.dropbox.com/developers-v1/core/start/android
解决方法:
现在不推荐使用DropBox API v1.
https://blogs.dropbox.com/developers/2017/09/api-v1-shutdown-details/
迁移到API v2,以便从您的代码访问DropBox.
请遵循此参考以获取迁移指南.
https://www.dropbox.com/developers/reference/migration-guide.
标签:client,dropbox,android 来源: https://codeday.me/bug/20191025/1930325.html