【问题标题】:Use of "creator" property in timetime insert doesn't seem to work在时间插入中使用“创建者”属性似乎不起作用
【发布时间】:2013-05-29 01:47:28
【问题描述】:

游乐场有一个示例卡片,其中包含一个带有名称的“创作者”字段和一个代表“Google Glass”的图像。用于创建此卡的 JSON 是

{
  "text": "Hello Explorers,\n\nWelcome to Glass!\n\n+Project Glass\n",
  "creator": {
    "displayName": "Project Glass",
    "imageUrls": [
      "https://lh3.googleusercontent.com/-quy9Ox8dQJI/T3xUHhub6PI/AAAAAAAAHAQ/YvjqA3Pw1sM/glass_photos.jpg?sz=360"
    ]
  },
  "notification": {
    "level": "DEFAULT"
  }
}

但是,当它发送到 Glass 时,不会显示 imageUrl。 https://developers.google.com/glass/v1/reference/timeline/insert 的文档只是说“创建者”是一个“嵌套对象”,但没有明确说明这个嵌套对象应该是什么。该示例似乎表明这应该是一个联系人(请参阅https://developers.google.com/glass/v1/reference/contacts),并且插入返回的对象似乎是“mirror#contact”类型,证实了这一点。

创建者中使用的联系人是否需要先通过联系人 API 调用预先创建?为了让创作者能够正常显示或工作,是否还需要其他一些东西?

【问题讨论】:

    标签: google-mirror-api


    【解决方案1】:

    当前仅当REPLY 菜单项与时间线项一起提供时才会显示创建者。

    这似乎是一个错误,请将其提交到我们的issue tracker

    【讨论】:

    猜你喜欢
    • 2011-06-08
    • 2010-10-08
    • 1970-01-01
    • 2010-11-16
    • 2023-03-04
    • 2015-09-30
    • 2010-12-08
    • 2013-07-31
    • 1970-01-01
    相关资源
    最近更新 更多