게시물: 목록
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
중요:
2024년 9월 30일부터 v2.0 JSON API에 대한 지원이 중단됩니다.
기능을 계속 사용하려면 v2.0 JSON API를 사용하는 애플리케이션을 최신 API 버전으로 업데이트하세요. 최신 버전에서는 왼쪽 탐색 메뉴의 링크를 사용하세요.
게시물 목록을 검색합니다.
지금 사용해 보기
비공개 블로그에 게시물을 올릴 경우 인증이 필요합니다. 게시물이 공개 상태인 블로그에 게시된 경우 인증 없이 이 메서드를 호출할 수 있습니다.
요청
HTTP 요청
GET https://www.googleapis.com/blogger/v2/blogs/blogId/posts
매개변수
매개변수 이름 |
값 |
설명 |
필수 매개변수 |
blogId |
string |
게시물을 가져올 블로그의 ID입니다.
|
선택적 매개변수 |
fetchBodies |
boolean |
게시물의 본문 콘텐츠 포함 여부입니다.
|
maxResults |
unsigned integer |
가져올 수 있는 최대 게시물 수입니다.
|
pageToken |
string |
요청이 페이징된 경우 연속 토큰입니다.
|
startDate |
datetime |
가져올 가장 이른 게시 날짜입니다. RFC 3339 형식의 날짜/시간입니다.
|
요청 본문
이 메소드를 사용할 때는 요청 본문을 제공하지 마세요.
응답
요청에 성공할 경우 이 메소드는 다음과 같은 구조의 응답 본문을 반환합니다.
{
"kind": "blogger#postList",
"nextPageToken": string,
"prevPageToken": string,
"items": [
posts Resource
]
}
속성 이름 |
값 |
설명 |
Notes |
kind |
string |
이 항목의 종류입니다. 항상 blogger#postList 입니다. |
|
nextPageToken |
string |
다음 페이지가 있는 경우 가져오기 위한 페이지로 나누기 토큰입니다. |
|
prevPageToken |
string |
이전 페이지가 있는 경우 가져올 페이지로 나누기 토큰입니다. |
|
items[] |
list |
이 블로그의 게시물 목록입니다. |
|
사용해 보기
아래의 익스플로러를 이용해 라이브 데이터에서 이 메서드를 호출하고 응답을 확인해 보세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-06-26(UTC)
[null,null,["최종 업데이트: 2024-06-26(UTC)"],[[["\u003cp\u003eSupport for the v2.0 JSON API will be discontinued on September 30, 2024, and users should update to the latest API version.\u003c/p\u003e\n"],["\u003cp\u003eThis API retrieves a list of posts from a specified blog, requiring authentication only for private blogs.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use parameters like \u003ccode\u003efetchBodies\u003c/code\u003e, \u003ccode\u003emaxResults\u003c/code\u003e, \u003ccode\u003epageToken\u003c/code\u003e, and \u003ccode\u003estartDate\u003c/code\u003e to customize their requests for retrieving posts.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful responses will provide a list of posts along with pagination tokens for navigating through results.\u003c/p\u003e\n"]]],[],null,["# Posts: list\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.\n\nRetrieves a list of posts.\n[Try it now](#try-it).\n\nAuthentication is required if the posts are on a blog that is private. If the posts are on a blog that is public, then this method can be called without authentication.\n\nRequest\n-------\n\n### HTTP Request\n\n```\nGET https://www.googleapis.com/blogger/v2/blogs/blogId/posts\n```\n\n### Parameters\n\n| Parameter Name | Value | Description |\n|----------------|--------------------|--------------------------------------------------------------------|\n| **Required Parameters** |||\n| `blogId` | `string` | ID of the blog to fetch posts from. |\n| **Optional Parameters** |||\n| `fetchBodies` | `boolean` | Whether the body content of posts is included. |\n| `maxResults` | `unsigned integer` | Maximum number of posts to fetch. |\n| `pageToken` | `string` | Continuation token if the request is paged. |\n| `startDate` | `datetime` | Earliest post date to fetch, a date-time with RFC 3339 formatting. |\n\n### Request Body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```objective-c\n{\n \"kind\": \"blogger#postList\",\n \"nextPageToken\": string,\n \"prevPageToken\": string,\n \"items\": [\n posts Resource\n ]\n}\n```\n\n| Property Name | Value | Description | Notes |\n|-----------------|----------|-------------------------------------------------------------|-------|\n| `kind` | `string` | The kind of this entity. Always `blogger#postList`. | |\n| `nextPageToken` | `string` | Pagination token to fetch the next page, if one exists. | |\n| `prevPageToken` | `string` | Pagination token to fetch the previous page, if one exists. | |\n| `items[]` | `list` | The list of posts for this blog. | |\n\nTry It!\n-------\n\n\nUse the explorer below to call this method on live data and see the response."]]