如何使用 Google Drive 复制自定义实时文档?
How do I copy a custom real time document with Google Drive?
我正在尝试复制与 google 驱动器集成的实时文档。
https://developers.google.com/google-apps/realtime/drive
文档说使用 REST API 的 "files" 集合,但文件集合的复制方法返回 500 错误
http = httplib2.Http()
http = credentials.authorize(http)
drive_service = build('drive', 'v2', http=http)
copied_file = {'title': 'copied file'}
drive_file = drive_service.files().copy(fileId=doc_id, body=copied_file).execute()
我尝试将我的文件 ID 放在示例驱动器页面上,但它也因 500 内部错误而失败。
https://developers.google.com/drive/v2/reference/files/copy
是否可以通过这种方式复制 google 实时文档?
很遗憾,复制目前不适用于实时文档。我们正在努力修复,但会有一点点。
您可以通过创建新文件并使用 import/export API 复制文档内容来实现伪复制。
我正在尝试复制与 google 驱动器集成的实时文档。
https://developers.google.com/google-apps/realtime/drive 文档说使用 REST API 的 "files" 集合,但文件集合的复制方法返回 500 错误
http = httplib2.Http()
http = credentials.authorize(http)
drive_service = build('drive', 'v2', http=http)
copied_file = {'title': 'copied file'}
drive_file = drive_service.files().copy(fileId=doc_id, body=copied_file).execute()
我尝试将我的文件 ID 放在示例驱动器页面上,但它也因 500 内部错误而失败。 https://developers.google.com/drive/v2/reference/files/copy
是否可以通过这种方式复制 google 实时文档?
很遗憾,复制目前不适用于实时文档。我们正在努力修复,但会有一点点。
您可以通过创建新文件并使用 import/export API 复制文档内容来实现伪复制。