पोस्ट: सूची
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
अहम जानकारी:
हम 30 सितंबर, 2024 से, v2.0 JSON API के साथ काम करना बंद कर देंगे.
काम करते रहने के लिए, अपने उन ऐप्लिकेशन को अपडेट करें जो v2.0 JSON API
का इस्तेमाल करके, एपीआई के नए वर्शन पर काम करते हैं. सबसे नए वर्शन के लिए, बाईं ओर के नेविगेशन बार में दिए गए लिंक का इस्तेमाल करें.
पोस्ट की सूची फिर से लाता है.
इसे अभी आज़माएं.
अगर पोस्ट किसी निजी ब्लॉग पर हैं, तो पुष्टि करना ज़रूरी है. अगर पोस्ट किसी सार्वजनिक ब्लॉग पर हैं, तो इस तरीके को पुष्टि के बिना इस्तेमाल किया जा सकता है.
अनुरोध
एचटीटीपी अनुरोध
GET https://www.googleapis.com/blogger/v2/blogs/blogId/posts
पैरामीटर
पैरामीटर का नाम |
वैल्यू |
ब्यौरा |
ज़रूरी पैरामीटर |
blogId |
string |
पोस्ट को फ़ेच करने के लिए ब्लॉग का आईडी.
|
वैकल्पिक पैरामीटर |
fetchBodies |
boolean |
पोस्ट के मुख्य हिस्से में यह कॉन्टेंट शामिल है या नहीं.
|
maxResults |
unsigned integer |
फ़ेच करने के लिए पोस्ट की ज़्यादा से ज़्यादा संख्या.
|
pageToken |
string |
अगर अनुरोध को पेज व्यू के तौर पर सेट किया गया है, तो कंटिन्यूशन टोकन.
|
startDate |
datetime |
फ़ेच करने के लिए सबसे पहले पोस्ट की तारीख, आरएफ़सी 3339 फ़ॉर्मैट के साथ तारीख और समय.
|
अनुरोध का मुख्य भाग
इस तरीके का इस्तेमाल करके, अनुरोध का मुख्य हिस्सा न दें.
जवाब
अगर यह तरीका काम करता है, तो यह इस स्ट्रक्चर का इस्तेमाल करके रिस्पॉन्स का मुख्य हिस्सा दिखाता है:
{
"kind": "blogger#postList",
"nextPageToken": string,
"prevPageToken": string,
"items": [
posts Resource
]
}
प्रॉपर्टी का नाम |
वैल्यू |
ब्यौरा |
ज़रूरी जानकारी |
kind |
string |
इस इकाई का टाइप. हमेशा blogger#postList . |
|
nextPageToken |
string |
अगर कोई पेज मौजूद है, तो अगला पेज फ़ेच करने के लिए पेज पर नंबर डालने का टोकन. |
|
prevPageToken |
string |
अगर पहले से मौजूद कोई पेज मौजूद है, तो उसे फ़ेच करने के लिए पेज पर नंबर डालने का टोकन. |
|
items[] |
list |
इस ब्लॉग के लिए पोस्ट की सूची. |
|
इसे आज़माएं!
लाइव डेटा पर इस तरीके को कॉल करने और रिस्पॉन्स देखने के लिए, नीचे दिए गए एक्सप्लोरर का इस्तेमाल करें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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."]]