【问题标题】:Google Drive Realtime API "get" endpoint not working as expectedGoogle Drive Realtime API“get”端点未按预期工作
【发布时间】:2014-06-12 09:05:38
【问题描述】:

我们正在尝试使用 Google Drive API 来检索实时文档 (API reference) 的模型。但是,如果我调用“get”方法来检索通过Google Drive Realtime API Playground 应用程序生成的实时文件的详细信息(带有空白的“修订”字段),结果总是:

{
  "appId": "292824132082",
  "revision": 1, 
  "data": null
}

即使在对模型进行了大量编辑之后。如果我尝试指定不同的版本(比如“2”),结果是 500 错误:

{
 "error": {
  "code": 500,
  "message": null
 }
}

是我们做错了什么还是这个特定的 API 有问题?

【问题讨论】:

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


    【解决方案1】:

    使用 API Playground 调用“get”获取与 API Playground 应用关联的实时文档,而不是与您的应用关联的实时文档。

    如果您使用 API Playground 更新并获取两者,您应该会看到内容。

    【讨论】:

      猜你喜欢
      • 2016-01-29
      • 1970-01-01
      • 2014-11-12
      • 2017-10-24
      • 2016-03-16
      • 1970-01-01
      • 2018-04-24
      相关资源
      最近更新 更多