【问题标题】:Is there a way to levearge Google Drive API to allow your application to create Google Docs from within your own system?有没有办法利用 Google Drive API 让您的应用程序从您自己的系统中创建 Google Docs?
【发布时间】:2013-07-15 06:43:39
【问题描述】:

我们使用的是 iframe,然后我们开始使用 Google Drive 的 API。我们希望允许用户在我们的系统内创建 Google Doc,而无需离开我们的应用程序。有谁知道这是否可能?

【问题讨论】:

  • 您是否要求在 iframe 中创建新文件?
  • 所问问题的答案是“是”。我怀疑这个问题可以从更多细节中受益。

标签: google-api google-drive-api google-drive-realtime-api


【解决方案1】:

使用其中一种 Google Docs mimeTypes 插入一个新文件并等待响应。

POST https://developers.google.com/drive/v2/reference/files/insert
{ "mimeType": "application/vnd.google-apps.document" }

一旦响应到达,它将包含一个名为embedLink 的属性。在 iframe 上使用嵌入链接。

所有可用的 Google 文档 mime 类型都在 https://developers.google.com/drive/mime-types

【讨论】:

    猜你喜欢
    • 2020-10-17
    • 1970-01-01
    • 1970-01-01
    • 2013-07-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-07-10
    • 1970-01-01
    相关资源
    最近更新 更多