如何创建一个空的Google文档/电子表格 [英] How to create an empty Google doc / Spreadsheet
问题描述
创建空的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屋!