資源描述:
《【穿戴貓論壇】谷歌眼鏡Mirror API Reference之Timeline.pdf》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫(kù)。
1、谷歌眼鏡MirrorAPIReference之Timeline來(lái)源:http://bbs.seacat.cn/thread-891-1-1.htmlTimeline這個(gè)資源的方法列表,在文章的末尾資源表示形式用戶(hù)Timeline中的每一項(xiàng)都被表示為一個(gè)TimelineItemJSON結(jié)構(gòu),描述如下:{"kind":"mirror#timelineItem","id":string,"sourceItemId":string,"canonicalUrl":string,"bundleId":string,"isBundleCover":boolean,"selfLink":string,"c
2、reated":datetime,"updated":datetime,"displayTime":datetime,"isPinned":boolean,"pinScore":integer,"isDeleted":boolean,"etag":etag,"creator":contactsResource,"recipients":[contactsResource],"inReplyTo":string,"title":string,"text":string,"html":string,"speakableType":string,"speakableText":string,"a
3、ttachments":[timeline.attachmentsResource],"location":locationsResource,"menuItems":[{"id":string,"action":string,"values":[{"state":string,"displayName":string,"iconUrl":string}],"removeWhenSelected":boolean,"payload":string}],"notification":{"level":string,"deliveryTime":datetime}}屬性名值描述注釋與這個(gè)項(xiàng)目相
4、關(guān)的媒體附件列表.方便的話,你可以參考htmlplyload的附件和cid方案.例子:?attachment:其中attachment_index是0-based這個(gè)數(shù)組的索引cid:attachment_id就是附件對(duì)于一個(gè)item的bundleID,服務(wù)可以為多bundleIdstring個(gè)items一起指定一個(gè)bundleId。他們?cè)谠O(shè)writable備上位于一個(gè)頂級(jí)層次item。規(guī)范URL指向規(guī)范/高質(zhì)量版本的Time
5、linecanonicalUrlstring可寫(xiě)所代表的數(shù)據(jù)項(xiàng)createddatetime這個(gè)項(xiàng)目創(chuàng)建的時(shí)間,格式為RFC3339。creatornestedobject創(chuàng)建項(xiàng)目的用戶(hù)或組可寫(xiě)這個(gè)時(shí)間會(huì)按RFC3339的格式顯示到用戶(hù)的時(shí)間軸上。用戶(hù)的的時(shí)間軸是按展出時(shí)間displayTimedatetime排序的,因此這也將決定項(xiàng)目顯示在時(shí)間軸可寫(xiě)中。如果沒(méi)有設(shè)定的服務(wù),顯示時(shí)間默認(rèn)為更新的時(shí)間。etagetag為這個(gè)itemETagHTML內(nèi)容項(xiàng)。如果text和html提供了一個(gè)項(xiàng)目,html將呈現(xiàn)在時(shí)間軸中允許的元素你可以在時(shí)間軸卡片中使用這些元素?Headers:h1,h2,h3
6、,h4,h5,h6?Images:img?Lists:li,ol,ul?HTML5semantics:article,aside,details,figure,figcaption,footer,header,nav,section,summary,time?Structural:blockquote,br,div,hr,htmlstring可寫(xiě)p,span?Style:b,big,center,em,i,u,s,small,strike,strong,style,sub,sup?Tables:table,tbody,td,tfoot,th,thead,tr封鎖的元素這些元素和他們的內(nèi)容會(huì)
7、從中移除。?Documentheaders:head,title?Embeds:audio,embed,object,source,video?Frames:frame,frameset?Scripting:oranget,script其他的元素其他沒(méi)有被列出的元素會(huì)被移除,但他們的內(nèi)容保存下來(lái)。idstring時(shí)間軸的ID.這是用戶(hù)時(shí)間軸所特有的。如果這個(gè)item有另一個(gè)item回復(fù)生成,這inReplyTostrin