使用Google文档API删除的文档在Google云端硬盘中仍然可见 [英] Documents deleted using Google Docs API still visible in Google Drive

查看:456
本文介绍了使用Google文档API删除的文档在Google云端硬盘中仍然可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Google文档API(使用GData)构建了一个集成,允许用户从其他应用程序创建/编辑文档。最初,当文件被删除时,我们会让它们永久删除。它们在Google文档或Google云端硬盘中不再显示。现在,使用Google文档API删除它们时,它们仍然存在于Google云端硬盘中的文档列表中。当您尝试按照文档的链接时,您到达对不起,您请求的页面(或文档)不存在。页面。



Google云端硬盘是否不尊重通过Google文档API采取的操作?我是否需要使用Google文档API和Google Drive API删除这些文档?如果用户尚未迁移到Google云端硬盘会怎么样?有没有办法分辨是否已迁移?或者我是否强制他们迁移,以便我可以使用Google Drive API来让他们的Google Drive清除这些已死的文档? 解决方案

Drive API和Docs List API都使用相同的资源,因此您只需使用其中一个(我们建议使用前者)。



使用云端硬盘您可以垃圾删除文件。当您清理文件时,它仍会在Google Drive中列出并标记为垃圾邮件,以便您仍可以删除方法。


I've built an integration using the Google Docs API (using GData) allowing users to create/edit documents from another application. Originally, when documents were deleted we would have them permanently deleted. They were no longer visible in Google Docs or Google Drive. Now when they are deleted using the Google Docs API, they are still present in the list of Documents in Google Drive. When you attempt to follow the link to the document you arrive at the "Sorry, the page (or document) you have requested does not exist." page.

Does Google Drive not honor the actions taken via the Google Docs API? Do I need to delete these documents using both the Google Docs API and the Google Drive API? What if the user has not migrated to Google Drive? Is there a way to tell if the have migrated? Or do I force them to migrate so I can use the Google Drive API to keep their Google Drive clean of these dead documents?

解决方案

The Drive API and the Docs List API both operate on the same resources so you only have to use one of them (and we recommend the former).

With the Drive API you can trash or delete files. When you trash a file, it will still be listed in Google Drive with a label to mark it as in trash, so that you can still untrash it.

If you want to remove a file completely, you have to use the delete method.

这篇关于使用Google文档API删除的文档在Google云端硬盘中仍然可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆