Post
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Una risorsa post contiene i contenuti HTML di un post del blog, insieme ai metadati del post.
Per un elenco dei metodi per questa risorsa, consulta la fine di questa pagina.
Rappresentazioni delle risorse
{
"kind": "blogger#post",
"id": string,
"blog": {
"id": string
},
"published": datetime,
"updated": datetime,
"url": string,
"selfLink": string,
"title": string,
"titleLink": string,
"content": string,
"images": [
{
"url": string
}
],
"author": {
"id": string,
"displayName": string,
"url": string,
"image": {
"url": string
}
},
"replies": {
"totalItems": long,
"selfLink": string,
"items": [
comments Resource
]
},
"labels": [
string
],
"location": {
"name": string,
"lat": double,
"lng": double,
"span": string
},
"status": string
}
Nome proprietà |
Valore |
Descrizione |
Note |
kind |
string |
Il tipo di questa entità. Sempre blogger#post . |
|
id |
string |
L'ID di questo post. |
|
blog |
object |
Dati sul blog contenente questo post. |
|
blog.id |
string |
L'ID del blog che contiene questo post. |
|
published |
datetime |
RFC 3339 date-time al momento della pubblicazione di questo post. |
|
updated |
datetime |
RFC 3339 date-time al momento dell'ultimo aggiornamento di questo post. |
|
url |
string |
L'URL in cui viene visualizzato questo post. |
|
selfLink |
string |
L'URL dell'API Blogger da cui recuperare questa risorsa. |
|
title |
string |
Il titolo del post. |
|
content |
string |
I contenuti del post. Può contenere markup HTML. |
|
author |
object |
L'autore di questo post. |
|
author.id |
string |
L'ID del creator del post. |
|
author.displayName |
string |
Il nome visualizzato dell'autore del post. |
|
author.url |
string |
L'URL della pagina del profilo dell'autore del post. |
|
author.image |
object |
L'avatar del creatore del post. |
|
author.image.url |
string |
L'URL dell'avatar del creator del post. |
|
replies |
object |
Il contenitore dei commenti di questo post. |
|
replies.totalItems |
long |
Il numero totale di commenti a questo post. |
|
replies.selfLink |
string |
L'URL dell'API Blogger per recuperare i commenti di questo post. |
|
labels[] |
list |
L'elenco delle etichette con cui è stato taggato questo post. |
|
replies.items[] |
list |
L'elenco dei commenti per questo post. |
|
location |
object |
La posizione, se il post è dotato di tag geografico. |
|
location.name |
string |
Nome della località. |
|
location.lat |
double |
Latitudine della località. |
|
location.lng |
double |
La longitudine della località. |
|
location.span |
string |
Intervallo dell'area visibile della località. Può essere utilizzato durante il rendering di un'anteprima della mappa. |
|
titleLink |
string |
L'URL del link al titolo, simile al link correlato dell'atom. |
|
images[] |
list |
Immagine di visualizzazione per il post. |
|
images[].url |
string |
|
|
status |
string |
Stato del post. Impostato solo per le richieste a livello di amministratore |
|
Metodi
Puoi recuperare l'elenco dei post di un blog utilizzando il metodo list e recuperare un singolo post utilizzando il metodo get.
- list
- Recupera un elenco di post.
- get
- Recupero di un post tramite l'ID post.
- search
- Cerca un post che corrisponda ai termini di query specificati.
- insert
- Aggiunge un post.
- elimina
- Elimina un post in base all'ID.
- getByPath
- Recupero di un post tramite percorso.
- patch
- Aggiorna un post. Questo metodo supporta la semantica delle patch.
- update
- Aggiorna un post.
- publish
- Pubblica una bozza di post.
- ripristina
- Ripristinare lo stato di bozza di un post pubblicato o programmato, rimuovendo il post dai contenuti visibili pubblicamente.
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-05-15 UTC.
[null,null,["Ultimo aggiornamento 2025-05-15 UTC."],[[["\u003cp\u003eA posts resource stores a blog post's HTML content and metadata, such as title, author, and publication date.\u003c/p\u003e\n"],["\u003cp\u003eThe resource representation includes details like post ID, blog ID, content, author information, comments, labels, and location.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage posts using various methods: list to retrieve multiple posts, get to retrieve a specific post by ID, and others for searching, inserting, deleting, updating, and publishing.\u003c/p\u003e\n"],["\u003cp\u003ePosts can include custom metadata and images, along with details about the post's location if it is geotagged.\u003c/p\u003e\n"]]],[],null,["# Posts\n\nA posts resource contain the HTML content of a blog post, along with post metadata.\n\nFor a list of [methods](#methods) for this resource, see the end of this page.\n\nResource representations\n------------------------\n\n\u003cbr /\u003e\n\n```objective-c\n{\n \"kind\": \"blogger#post\",\n \"id\": string,\n \"blog\": {\n \"id\": string\n },\n \"published\": datetime,\n \"updated\": datetime,\n \"url\": string,\n \"selfLink\": string,\n \"title\": string,\n \"titleLink\": string,\n \"content\": string,\n \"images\": [\n {\n \"url\": string\n }\n ],\n \"author\": {\n \"id\": string,\n \"displayName\": string,\n \"url\": string,\n \"image\": {\n \"url\": string\n }\n },\n \"replies\": {\n \"totalItems\": long,\n \"selfLink\": string,\n \"items\": [\n comments Resource\n ]\n },\n \"labels\": [\n string\n ],\n \"location\": {\n \"name\": string,\n \"lat\": double,\n \"lng\": double,\n \"span\": string\n },\n \"status\": string\n}\n```\n\n| Property name | Value | Description | Notes |\n|----------------------|------------|----------------------------------------------------------------------------------------------|-------|\n| `kind` | `string` | The kind of this entity. Always `blogger#post`. | |\n| `id` | `string` | The ID of this post. | |\n| `blog` | `object` | Data about the blog containing this post. | |\n| blog.`id` | `string` | The ID of the blog that contains this post. | |\n| `published` | `datetime` | [RFC 3339](http://www.ietf.org/rfc/rfc3339.txt) `date-time` when this post was published. | |\n| `updated` | `datetime` | [RFC 3339](http://www.ietf.org/rfc/rfc3339.txt) `date-time` when this post was last updated. | |\n| `url` | `string` | The URL where this post is displayed. | |\n| `selfLink` | `string` | The Blogger API URL to fetch this resource from. | |\n| `title` | `string` | The title of the post. | |\n| `content` | `string` | The content of the post. Can contain HTML markup. | |\n| `author` | `object` | The author of this post. | |\n| author.`id` | `string` | The ID of the post creator. | |\n| author.`displayName` | `string` | The post creator's display name. | |\n| author.`url` | `string` | The URL of the post creator's profile page. | |\n| author.`image` | `object` | The post creator's avatar. | |\n| author.image.`url` | `string` | The post creator's avatar URL. | |\n| `replies` | `object` | The container for this post's comments. | |\n| replies.`totalItems` | `long` | The total number of comments on this post. | |\n| replies.`selfLink` | `string` | The Blogger API URL of to retrieve the comments for this post. | |\n| `labels[]` | `list` | The list of labels this post was tagged with. | |\n| replies.`items[]` | `list` | The list of comments for this post. | |\n| `location` | `object` | The location, if this post is geotagged. | |\n| location.`name` | `string` | Location name. | |\n| location.`lat` | `double` | Location's latitude. | |\n| location.`lng` | `double` | Location's longitude. | |\n| location.`span` | `string` | Location's viewport span. Can be used when rendering a map preview. | |\n| `titleLink` | `string` | The title link URL, similar to atom's related link. | |\n| `images[]` | `list` | Display image for the Post. | |\n| images[].`url` | `string` | | |\n| `status` | `string` | Status of the post. Only set for admin-level requests | |\n\nMethods\n-------\n\nYou can retrieve the list of posts for a blog using the [list](/blogger/docs/3.0/reference/posts/list) method, and retrieve an individual post using the [get](/blogger/docs/3.0/reference/posts/get) method.\n\n[list](/blogger/docs/3.0/reference/posts/list)\n: Retrieves a list of posts.\n\n[get](/blogger/docs/3.0/reference/posts/get)\n: Retrieves one post by post ID.\n\n[search](/blogger/docs/3.0/reference/posts/search)\n: Searches for a post that matches the given query terms.\n\n[insert](/blogger/docs/3.0/reference/posts/insert)\n: Adds a post.\n\n[delete](/blogger/docs/3.0/reference/posts/delete)\n: Deletes a post by ID.\n\n[getByPath](/blogger/docs/3.0/reference/posts/getByPath)\n: Retrieves a post by path.\n\n[patch](/blogger/docs/3.0/reference/posts/patch)\n: Updates a post. This method supports [patch semantics](/blogger/docs/3.0/performance).\n\n[update](/blogger/docs/3.0/reference/posts/update)\n: Updates a post.\n\n[publish](/blogger/docs/3.0/reference/posts/publish)\n: Publish a draft post.\n\n[revert](/blogger/docs/3.0/reference/posts/revert)\n: Revert a published or scheduled post to draft state, which removes the post from the publicly viewable content."]]