Commenti
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Importante:
il 30 settembre 2024 interromperemo il supporto dell'API JSON 2.0.
Per assicurare un funzionamento continuo, aggiorna le applicazioni che utilizzano l'API JSON 2.0 alla versione più recente dell'API. Per la versione più recente, utilizza i link nella barra di navigazione a sinistra.
I commenti per una risorsa Post.
Rappresentazioni delle risorse
La risorsa Commenti contiene i dati di un commento su un post.
{
"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
}
}
}
Nome proprietà |
Valore |
Descrizione |
Note |
kind |
string |
Il tipo di voce. Sempre blogger#comment . |
|
id |
long |
L'identificatore di questa risorsa. |
|
post |
object |
Dati relativi al post contenente questo commento. |
|
post.id |
long |
L'identificatore del post contenente questo commento. |
|
blog |
object |
Dati sul blog contenente questo commento. |
|
blog.id |
long |
L'identificatore del blog contenente questo commento. |
|
published |
datetime |
Data e ora RFC 3339 in cui è stato pubblicato questo commento. |
|
updated |
datetime |
Data e ora RFC 3339 dell'ultimo aggiornamento di questo commento. |
|
selfLink |
string |
L'URL REST dell'API da cui recuperare questa risorsa. |
|
content |
string |
Il contenuto effettivo del commento. Può includere markup HTML. |
|
author |
object |
L'autore di questo commento. |
|
author.id |
string |
L'identificatore dell'autore del commento. |
|
author.displayName |
string |
Il nome visualizzato dell'autore del commento. |
|
author.url |
string |
L'URL della pagina del profilo dell'autore del commento. |
|
author.image |
object |
Il contenitore dell'URL dell'avatar del creator. |
|
author.image.url |
string |
L'URL dell'immagine dell'avatar dell'autore del commento. |
|
inReplyTo |
object |
Dati relativi al commento a cui si risponde. |
|
inReplyTo.id |
long |
L'identificatore del commento principale. |
|
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[[["\u003cp\u003eSupport for the v2.0 JSON API will be discontinued on September 30th, 2024.\u003c/p\u003e\n"],["\u003cp\u003eUpdate your applications to the latest API version to ensure continued functionality.\u003c/p\u003e\n"],["\u003cp\u003eUse the \u003ccode\u003eblogger.comments.list\u003c/code\u003e method to retrieve a list of comments for a post and the \u003ccode\u003eblogger.comments.get\u003c/code\u003e method to retrieve an individual comment.\u003c/p\u003e\n"],["\u003cp\u003eThe Comments Resource provides detailed information about a comment, including its content, author, and timestamps.\u003c/p\u003e\n"]]],[],null,["# Comments\n\n**Important**:\nWe will discontinue support for the v2.0 JSON API on September 30th, 2024.\nTo ensure continued functionality, update your applications that rely on the v2.0 JSON API\nto the latest API version. For the latest version, use the links in the left-side navbar.\nThe comments for a [Posts](/blogger/docs/2.0/json/reference/posts) Resource.\n\nMethods\n-------\n\nTo retrieve a list of comments for a post, use the [blogger.comments.list](/blogger/docs/2.0/json/reference/comments/list) method. To retrieve an individual comment, use the [blogger.comments.get](/blogger/docs/2.0/json/reference/comments/get) method.\n\n[list](/blogger/docs/2.0/json/reference/comments/list)\n: Retrieves the list of [Comments](/blogger/docs/2.0/json/reference/comments) for a [Post](/blogger/docs/2.0/json/reference/posts).\n\n[get](/blogger/docs/2.0/json/reference/comments/get)\n: Retrieves one Comments Resource by its commentId.\n\nResource Representations\n------------------------\n\nThe Comments Resource contains the data for a comment on a post.\n\n```text\n{\n \"kind\": \"blogger#comment\",\n \"id\": long,\n \"inReplyTo\": {\n \"id\": long\n },\n \"post\": {\n \"id\": long\n },\n \"blog\": {\n \"id\": long\n },\n \"published\": datetime,\n \"updated\": datetime,\n \"selfLink\": string,\n \"content\": string,\n \"author\": {\n \"id\": string,\n \"displayName\": string,\n \"url\": string,\n \"image\": {\n \"url\": string\n }\n }\n}\n```\n\n| Property Name | Value | Description | Notes |\n|----------------------|------------|-------------------------------------------------------------|-------|\n| `kind` | `string` | The kind of this entry. Always `blogger#comment`. | |\n| `id` | `long` | The identifier for this resource. | |\n| `post` | `object` | Data about the post containing this comment. | |\n| post.`id` | `long` | The identifier of the post containing this comment. | |\n| `blog` | `object` | Data about the blog containing this comment. | |\n| blog.`id` | `long` | The identifier of the blog containing this comment. | |\n| `published` | `datetime` | RFC 3339 date-time when this comment was published. | |\n| `updated` | `datetime` | RFC 3339 date-time when this comment was last updated. | |\n| `selfLink` | `string` | The API REST URL to fetch this resource from. | |\n| `content` | `string` | The actual content of the comment. May include HTML markup. | |\n| `author` | `object` | The author of this comment. | |\n| author.`id` | `string` | The identifier of the comment creator. | |\n| author.`displayName` | `string` | The comment creator's display name. | |\n| author.`url` | `string` | The URL of the comment creator's Profile page. | |\n| author.`image` | `object` | The container for the creator's avatar URL. | |\n| author.image.`url` | `string` | The URL of the comment creator's avatar image. | |\n| `inReplyTo` | `object` | Data about the comment this is in reply to. | |\n| inReplyTo.`id` | `long` | The identified of the parent of this comment. | |"]]