[英]How can I delete a file/folder from Dropbox using the java api?
I'm working on a project that leverages the backend Dropbox api's. 我正在开发一个利用后端Dropbox API的项目。 When I started, there was no java api, only an android api.
当我开始时,没有Java api,只有一个android API。 I used that and it had a function to delete and worked fine.
我使用了它,它具有删除功能,并且工作正常。 They recently came out with a more generic java version of the sdk that I'm almost switched over to, however, I can't seem to find in the documentation how to delete.
他们最近推出了更通用的sdk Java版本,但我几乎要切换到该版本,但是,我似乎在文档中找不到如何删除的信息。
I realize that all of the sdk's sit on top of a rest api, but I would like to use the sdk to do everything, rather than use the rest api. 我意识到所有sdk都位于rest api的顶部,但是我想使用sdk来做所有事情,而不是使用rest api。
If anyone can help with how to delete from the java api, that would be great. 如果有人可以帮助您删除Java api,那将很棒。 Thanks!
谢谢!
I just downloaded the Dropbox Java SDK 1.6 and found this in the changelog: 我刚刚下载了Dropbox Java SDK 1.6,并在变更日志中找到了它:
1.6 (2013-07-07)
1.6(2013-07-07)
- Completely rewritten SDK, focused on Java web apps.
完全重写的SDK,专注于Java Web应用程序。
- Many API calls not yet implemented.
许多API调用尚未实现。
- Not backwards compatible with previous versions.
与先前版本不向后兼容。
Also looking at the JavaDoc did not reveal any remove/delete method ( Dropbox Java SDK JavaDoc ). 另外,查看JavaDoc并没有显示任何删除/删除方法( Dropbox Java SDK JavaDoc )。 So I guess it is really not implemented yet.
所以我想它实际上还没有实现。 Either you do it yourself with REST or wait a little longer :)
您可以使用REST自己完成,或者等待更长的时间:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.