पोस्ट
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
अहम जानकारी:
हम 30 सितंबर, 2024 से JSON API के वर्शन 2.0 के लिए सहायता बंद कर देंगे.
यह पक्का करने के लिए कि सेवाएं काम करती रहें, अपने उन ऐप्लिकेशन को एपीआई के नए वर्शन पर अपडेट करें जो JSON API के 2.0 वर्शन पर निर्भर हैं. नए वर्शन के लिए, बाईं ओर मौजूद नेविगेशन बार में दिए गए लिंक का इस्तेमाल करें.
पोस्ट में, ब्लॉग पोस्ट का एचटीएमएल कॉन्टेंट होता है.
तरीके
blogger.posts.list का इस्तेमाल करके, किसी ब्लॉग की पोस्ट की सूची देखी जा सकती है. साथ ही, blogger.posts.get का इस्तेमाल करके, किसी एक पोस्ट को देखा जा सकता है.
- list
- पोस्ट की सूची दिखाता है.
- get
- postId के हिसाब से एक पोस्ट को वापस लाता है.
संसाधन के तौर पर दिखाए जाने वाले आइटम
पोस्ट संसाधन में, ब्लॉग पोस्ट का डेटा और मेटाडेटा होता है.
{
"kind": "blogger#post",
"id": long,
"blog": {
"id": long
},
"published": datetime,
"updated": datetime,
"url": string,
"selfLink": string,
"title": string,
"content": string,
"author": {
"id": string,
"displayName": string,
"url": string,
"image": {
"url": string
}
},
"replies": {
"totalItems": long,
"selfLink": string
},
"labels": [
string
]
}
प्रॉपर्टी का नाम |
मान |
ब्यौरा |
नोट |
kind |
string |
इस इकाई का टाइप. हमेशा blogger#post . |
|
id |
long |
इस पोस्ट का आइडेंटिफ़ायर. |
|
blog |
object |
इस पोस्ट वाले ब्लॉग का डेटा. |
|
blog.id |
long |
उस ब्लॉग का आइडेंटिफ़ायर जिसमें यह पोस्ट मौजूद है. |
|
published |
datetime |
इस पोस्ट को पब्लिश करने की तारीख और समय, RFC 3339 फ़ॉर्मैट में. |
|
updated |
datetime |
इस पोस्ट को आखिरी बार अपडेट किए जाने की तारीख और समय, RFC 3339 फ़ॉर्मैट में. |
|
url |
string |
वह यूआरएल जहां यह पोस्ट दिखती है. |
|
selfLink |
string |
इस संसाधन को फ़ेच करने के लिए एपीआई का REST यूआरएल. |
|
title |
string |
पोस्ट का टाइटल. |
|
content |
string |
पोस्ट का कॉन्टेंट. इसमें एचटीएमएल मार्कअप हो सकता है. |
|
author |
object |
इस पोस्ट का लेखक. |
|
author.id |
string |
पोस्ट बनाने वाले व्यक्ति का आइडेंटिफ़ायर. |
|
author.displayName |
string |
पोस्ट बनाने वाले का डिसप्ले नेम. |
|
author.url |
string |
पोस्ट बनाने वाले क्रिएटर के प्रोफ़ाइल पेज का यूआरएल. |
|
author.image |
object |
पोस्ट बनाने वाले का अवतार. |
|
author.image.url |
string |
पोस्ट बनाने वाले क्रिएटर के अवतार का यूआरएल. |
|
replies |
object |
इस पोस्ट पर की गई टिप्पणियों का कंटेनर. |
|
replies.totalItems |
long |
इस पोस्ट पर की गई टिप्पणियों की कुल संख्या. |
|
replies.selfLink |
string |
इस पोस्ट पर की गई टिप्पणियों का यूआरएल. |
|
labels[] |
list |
इस पोस्ट पर टैग किए गए लेबल की सूची. |
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-12-21 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-12-21 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eSupport for the v2.0 JSON API will be discontinued on September 30, 2024, requiring applications to update to the latest API version.\u003c/p\u003e\n"],["\u003cp\u003eThe API allows retrieval of blog posts using the \u003ccode\u003eblogger.posts.list\u003c/code\u003e and \u003ccode\u003eblogger.posts.get\u003c/code\u003e methods, enabling access to post data.\u003c/p\u003e\n"],["\u003cp\u003ePosts contain HTML content and metadata such as title, author information, publication date, and associated labels.\u003c/p\u003e\n"],["\u003cp\u003eThe "Posts Resource" provides a structured representation of a blog post, including details like ID, content, author, and comments.\u003c/p\u003e\n"]]],[],null,["# Posts\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.\nPosts contain the HTML content of a blog post.\n\nMethods\n-------\n\nYou can retrieve the list of Posts for a Blog using the [blogger.posts.list](/blogger/docs/2.0/json/reference/posts/list) method, and retrieve an individual Post using the [blogger.posts.get](/blogger/docs/2.0/json/reference/posts/get) method.\n\n[list](/blogger/docs/2.0/json/reference/posts/list)\n: Retrieves a list of posts.\n\n[get](/blogger/docs/2.0/json/reference/posts/get)\n: Retrieves one post by postId.\n\nResource Representations\n------------------------\n\nThe Posts Resource contains the data and metadata for a post in a blog.\n\n```text\n{\n \"kind\": \"blogger#post\",\n \"id\": long,\n \"blog\": {\n \"id\": long\n },\n \"published\": datetime,\n \"updated\": datetime,\n \"url\": string,\n \"selfLink\": string,\n \"title\": string,\n \"content\": string,\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 },\n \"labels\": [\n string\n ]\n}\n```\n\n| Property Name | Value | Description | Notes |\n|----------------------|------------|-----------------------------------------------------|-------|\n| `kind` | `string` | The kind of this entity. Always `blogger#post`. | |\n| `id` | `long` | The identifier of this post. | |\n| `blog` | `object` | Data about the blog containing this post. | |\n| blog.`id` | `long` | The identifier of the blog that contains this post. | |\n| `published` | `datetime` | RFC 3339 date-time when this post was published. | |\n| `updated` | `datetime` | RFC 3339 date-time when this post was last updated. | |\n| `url` | `string` | The URL where this post is displayed. | |\n| `selfLink` | `string` | The API REST URL to fetch this resource from. | |\n| `title` | `string` | The title of the post. | |\n| `content` | `string` | The content of the post. May contain HTML markup. | |\n| `author` | `object` | The author of this post. | |\n| author.`id` | `string` | The identifier 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 URL of the comments on this post. | |\n| `labels[]` | `list` | The list of labels this post was tagged with. | |"]]