如何创建一个空的Google文档/电子表格 [英] How to create an empty Google doc / Spreadsheet

查看:115
本文介绍了如何创建一个空的Google文档/电子表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建空的Google文档/电子表格的最佳方式是什么?
我现在使用GData文档/电子表格api,但我更愿意使用Drive API。
是否有mimetype会创建一个空的Google Doc / Google Spreadsheet?

解决方案

正如Claudio在评论中提到的,您可以在其他问题中看到支持的MIME类型列表。在实践中,它很容易创建一个空白的文档。例如:

$ pre $ POST $ https $ b {
'title':'我的新文档',
'mimeType':'application / vnd.google-apps.document'
}


What is the best way to create an empty Google doc / spreadsheet? I am using the GData docs / spreadsheet api right now but I'd prefer to use the Drive API. Is there a mimetype that will create an empty Google Doc/Google Spreadsheet?

解决方案

As Claudio mentioned in the comment, you can see the list of the supported MIME types in the other question. In practice, its very easy to create a blank doc. For example:

POST https://www.googleapis.com/drive/v2/files

{
'title' : 'My new document',
'mimeType':'application/vnd.google-apps.document'
}

这篇关于如何创建一个空的Google文档/电子表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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