简体   繁体   English

如何使用Java API从Dropbox删除文件/文件夹?

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

相关问题 如何使用Java创建一个文件夹并将一个文件放入Dropbox中? - How can I create a folder and put one file inside it in Dropbox using java? 如何在不使用 Java 中的 Dropbox SDK 的情况下在 Dropbox 上上传文件? - How can I upload a file on dropbox without using a dropbox SDK in Java? 使用Java的Dropbox Chooser从Dropbox选取文件后,如何将文件存储在服务器中? - How can I store the files in my server after picking the files from dropbox with the dropbox Chooser using java 如何使用带有Java KML API的地标ID从文件夹中删除KML地标? - How do I delete a KML Placemark from a Folder using the placemark's ID with the Java API for KML? 如何使用Temboo API在DropBox中创建文件夹 - How to Create Folder in DropBox using Temboo API 如何使用Java Dropbox API检索DbxEntry.File的模仿类型 - How to retrieve the mimetype of a DbxEntry.File using the java Dropbox API 如何判断文件(从Dropbox网页读取)是否已在Java中更改? - How can I judge whether the file (read from dropbox webpage) has been changed or not in Java? Box API Java:如何将文件移到另一个文件夹? - Box API Java: How can I move a file into another folder? 如何删除保管箱文件? - How to delete a dropbox file? 如何使用Android中的Dropbox API直接从Dropbox流式传输MP3文件 - How to stream mp3 file directly from Dropbox using dropbox api in android
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM