J W*_*ang 4 google-glass google-mirror-api
时间轴项目的文本和html字段都呈现时间轴卡片的内容.如果我填充两个timelineItem.text
和timelineItem.html
字段会发生什么?
例如
POST /mirror/v1/timeline HTTP/1.1
Host: www.googleapis.com
Authorization: Bearer {auth token}
Content-Type: application/json
Content-Length: 26
{ "text": "Hello world",
"html": "I am a kitty" }
Run Code Online (Sandbox Code Playgroud)
你的价值timelineItem.html
将胜过所提供的价值timelineItem.text
.
timelineItem
资源参考文档中对此进行了更详细的说明:
如果两个
text
并html
提供了一个项目时,html
会在时间轴上呈现.