留言

重要事項:我們將在 2024 年 9 月 30 日停止支援 JSON API 2.0 版。為確保相關功能持續運作,請將使用 v2.0 JSON API 的應用程式更新為最新的 API 版本。如要使用最新版本,請使用左側的水平列連結。

貼文資源的留言。 

方法

如要擷取文章的評論清單,請使用 blogger.comments.list 方法。如要擷取個別留言,請使用 blogger.comments.get 方法。

list
擷取貼文留言清單。
get
根據 commentId 擷取一個留言資源。

資源表示法

留言資源包含貼文留言的資料。

{
  "kind": "blogger#comment",
  "id": long,
  "inReplyTo": {
    "id": long
  },
  "post": {
    "id": long
  },
  "blog": {
    "id": long
  },
  "published": datetime,
  "updated": datetime,
  "selfLink": string,
  "content": string,
  "author": {
    "id": string,
    "displayName": string,
    "url": string,
    "image": {
      "url": string
    }
  }
}
資源名稱 說明 附註
kind string 這個項目的類型。一律為 blogger#comment
id long 這個資源的 ID。
post object 包含此留言的貼文資料。
post.id long 包含此留言的貼文 ID。
blog object 包含這則留言的網誌資料。
blog.id long 包含此留言的網誌 ID。
published datetime 這則留言發布時的 RFC 3339 日期時間。
updated datetime 上次更新這則留言的 RFC 3339 日期時間。
content string 留言的實際內容。可能包含 HTML 標記。
author object 這則留言的作者。
author.id string 留言創作者的 ID。
author.displayName string 留言者顯示名稱。
author.url string 留言創作者的個人資料頁面網址。
author.image object 創作者顯示圖片網址的容器。
author.image.url string 留言創作者的顯示圖片網址。
inReplyTo object 回覆的留言資料。
inReplyTo.id long 此留言父項的 ID。