我试图编写脚本来编辑Google电子表格。但是文档不足以理解工作API的具体含义。我在API Manager中进行了注册,并下载了json文件。你能给我一些例子,我如何在谷歌驱动器中编辑文档?谢谢Google Drive API - PHP(CRUD)
0
A
回答
0
您可以使用Google Realtime API
,它通过使用操作转换为Google云端硬盘中的文件提供协作服务。该API是由Google托管的JavaScript库,提供用于创建协作应用程序的协作对象,事件和方法。
实时API数据模型可能会由于当前用户以外的人员所做的编辑而改变。实时数据模型“最终一致”。这意味着如果所有合作者都停止编辑,最终每个人都会看到相同的数据模型。
多人需要同时编辑相同数据的应用程序。文档编辑器是这类应用程序的绝佳示例。当多个用户正在编辑文件时,Realtime API处理数据传输,存储和冲突解决的所有方面。
对于脚本,使用Class DocumentApp
,文档服务创建并打开可以编辑的Documents。可以使用DocumentApp打开或创建文档。
// Open a document by ID.
var doc = DocumentApp.openById('DOCUMENT_ID_GOES_HERE');
// Create and open a document.
doc = DocumentApp.create('Document Name');
这里有一个文档如何更新驱动文件:https://developers.google.com/drive/v2/reference/files/update
相关问题
- 1. Google Drive Api和Google Drive Web
- 2. PHP - Google Drive API HTTP响应
- 3. Nodejs Google Drive API
- 4. Google Drive API IAuthenticator
- 5. Google Drive API children.list
- 6. Google Drive API javascript
- 7. Google Drive API V3
- 8. 如何使用Google Drive API?
- 9. Google Drive API statusCode = SIGN_IN_REQUIRED
- 10. Google Drive SDK和API
- 11. Google Drive API与Android
- 12. Google Drive API - MVC IDataStore
- 13. Google Drive Android API onChildrenRetrievedCallback
- 14. OAuth API Google Drive Python
- 15. Google Drive Api与php的集成
- 16. Google Drive API网页身份验证PHP
- 17. DrEdit PHP和Google Drive
- 18. Google文档列表API和Google Drive SDK
- 19. app.js Google Drive上的JavaScript API
- 20. 配置Google Drive API和SDK
- 21. Google Drive API文件搜索
- 22. Google Drive公共API访问
- 23. google drive javascript api gapi.client.drive.files undefined
- 24. Android App + Cordova + HTML5 + Google Drive Api
- 25. Google Drive REST API。根目录
- 26. Google Drive API - 端口号?
- 27. Google-drive-java-api-returns-deleted-files
- 28. Google Drive API清单权限
- 29. 授权Android Google Drive API
- 30. Google Drive API追加文件?