게시물
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
게시물 리소스에는 게시물 메타데이터와 함께 블로그 게시물의 HTML 콘텐츠가 포함됩니다.
이 리소스에 대한 메소드 목록은 이 페이지의 하단에 나와 있습니다.
리소스 표현
{
"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
}
속성 이름 |
값 |
설명 |
참고 |
kind |
string |
이 항목의 종류입니다. 항상 blogger#post 입니다. |
|
id |
string |
이 게시물의 ID입니다. |
|
blog |
object |
이 게시물이 포함된 블로그에 대한 데이터입니다. |
|
blog.id |
string |
이 게시물이 포함된 블로그의 ID입니다. |
|
published |
datetime |
이 게시물이 게시된 RFC 3339 date-time 입니다. |
|
updated |
datetime |
이 게시물이 마지막으로 업데이트된 RFC 3339 date-time 입니다. |
|
url |
string |
이 게시물이 표시되는 URL입니다. |
|
selfLink |
string |
이 리소스를 가져올 Blogger API URL입니다. |
|
title |
string |
게시물 제목입니다. |
|
content |
string |
게시물의 콘텐츠입니다. HTML 마크업을 포함할 수 있습니다. |
|
author |
object |
이 게시물의 작성자입니다. |
|
author.id |
string |
게시물 작성자의 ID입니다. |
|
author.displayName |
string |
게시물 작성자의 표시 이름입니다. |
|
author.url |
string |
게시물 작성자의 프로필 페이지 URL입니다. |
|
author.image |
object |
게시물 작성자의 아바타입니다. |
|
author.image.url |
string |
게시물 작성자의 아바타 URL입니다. |
|
replies |
object |
이 게시물의 댓글을 위한 컨테이너입니다. |
|
replies.totalItems |
long |
이 게시물에 달린 총 댓글 수입니다. |
|
replies.selfLink |
string |
이 게시물의 댓글을 가져오는 Blogger API URL입니다. |
|
labels[] |
list |
이 게시물에 태그된 라벨 목록입니다. |
|
replies.items[] |
list |
이 게시물의 댓글 목록입니다. |
|
location |
object |
이 게시물에 위치 태그가 있는 경우 위치입니다. |
|
location.name |
string |
위치 이름입니다. |
|
location.lat |
double |
위치의 위도입니다. |
|
location.lng |
double |
위치의 경도입니다. |
|
location.span |
string |
위치의 표시 영역 범위입니다. 지도 미리보기를 렌더링할 때 사용할 수 있습니다. |
|
titleLink |
string |
atom의 관련 링크와 유사한 제목 링크 URL입니다. |
|
images[] |
list |
게시물의 이미지를 표시합니다. |
|
images[].url |
string |
|
|
status |
string |
게시물 상태입니다. 관리자 수준 요청에 대해서만 설정 |
|
메서드
list 메서드를 사용하여 블로그의 게시물 목록을 가져오고 get 메서드를 사용하여 개별 게시물을 가져올 수 있습니다.
- list
- 게시물 목록을 가져옵니다.
- get
- 게시물 ID로 게시물 하나를 검색합니다.
- search
- 지정된 검색어와 일치하는 게시물을 검색합니다.
- insert
- 게시물을 추가합니다.
- 삭제
- 게시물 ID를 기준으로 게시물을 삭제합니다.
- getByPath
- 경로별로 게시물을 검색합니다.
- patch
- 게시물을 업데이트합니다. 이 메서드는 패치 시맨틱스를 지원합니다.
- 업데이트
- 게시물을 업데이트합니다.
- 게시
- 게시할 초안을 작성합니다.
- revert
- 게시되거나 예약된 게시물을 초안 상태로 되돌립니다. 그러면 게시물이 공개적으로 볼 수 있는 콘텐츠에서 삭제됩니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-05-15(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 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."]]