【问题标题】:What are the commands for creating a new Google Document via the Google Docs API Python Client Library?通过 Google Docs API Python 客户端库创建新的 Google 文档的命令是什么?
【发布时间】:2021-05-16 11:51:29
【问题描述】:

我想使用 Google Docs API Python 客户端库 (https://github.com/googleapis/google-api-python-client) 从命令行创建一个新的 Google 文档。

新建文档的命令有哪些?

【问题讨论】:

  • 我无法理解What are the commands for creating a new document? 的commands。我为此道歉。我可以问你目标的细节吗?

标签: python google-docs-api


【解决方案1】:

示例:

body = {
    'title': 'myTitle'
}
doc = service.documents().create(body=body).execute()

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多