टिप्पणियां: सूची
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
अहम जानकारी:
हम 30 सितंबर, 2024 से, v2.0 JSON API के साथ काम करना बंद कर देंगे.
काम करते रहने के लिए, अपने उन ऐप्लिकेशन को अपडेट करें जो v2.0 JSON API
का इस्तेमाल करके, एपीआई के नए वर्शन पर काम करते हैं. सबसे नए वर्शन के लिए, बाईं ओर के नेविगेशन बार में दिए गए लिंक का इस्तेमाल करें.
किसी पोस्ट के लिए टिप्पणियों की सूची वापस लाता है.
इसे अभी आज़माएं.
अगर टिप्पणियां किसी निजी ब्लॉग पर की गई हैं, तो पुष्टि करना ज़रूरी है. अगर टिप्पणियां किसी ऐसे ब्लॉग पर हैं जो सार्वजनिक है, तो इस तरीके को पुष्टि के बिना इस्तेमाल किया जा सकता है.
अनुरोध
एचटीटीपी अनुरोध
GET https://www.googleapis.com/blogger/v2/blogs/blogId/posts/postId/comments
पैरामीटर
पैरामीटर का नाम |
वैल्यू |
ब्यौरा |
ज़रूरी पैरामीटर |
blogId |
string |
उस ब्लॉग का आईडी जिससे टिप्पणियां फ़ेच करनी हैं.
|
postId |
string |
उस पोस्ट का आईडी जिससे पोस्ट फ़ेच करनी हैं.
|
वैकल्पिक पैरामीटर |
fetchBodies |
boolean |
क्या टिप्पणियों का मुख्य हिस्सा शामिल किया जाएगा.
|
maxResults |
unsigned integer |
नतीजे में शामिल करने के लिए टिप्पणियों की ज़्यादा से ज़्यादा संख्या.
|
pageToken |
string |
अनुरोध पेज किए जाने पर कंटिन्यूशन टोकन.
|
startDate |
datetime |
टिप्पणी को फ़ेच करने की सबसे पहली तारीख, आरएफ़सी 3339 फ़ॉर्मैट के साथ तारीख और समय.
|
अनुरोध का मुख्य भाग
इस तरीके का इस्तेमाल करके, अनुरोध का मुख्य हिस्सा न दें.
जवाब
अगर यह तरीका काम करता है, तो यह इस स्ट्रक्चर का इस्तेमाल करके रिस्पॉन्स का मुख्य हिस्सा दिखाता है:
{
"kind": "blogger#commentList",
"nextPageToken": string,
"prevPageToken": string,
"items": [
comments Resource
]
}
प्रॉपर्टी का नाम |
वैल्यू |
ब्यौरा |
ज़रूरी जानकारी |
kind |
string |
इस तरह की एंट्री. हमेशा blogger#commentList . |
|
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\u003eBlogger API v2.0 will be discontinued on September 30, 2024; migrate to the latest version for continued support.\u003c/p\u003e\n"],["\u003cp\u003eThis endpoint retrieves a list of comments for a specific blog post, requiring authentication only for private blogs.\u003c/p\u003e\n"],["\u003cp\u003eRequest parameters allow filtering by date, limiting results, and including comment bodies.\u003c/p\u003e\n"],["\u003cp\u003eResponses include pagination tokens for navigating through results and a list of comment resources.\u003c/p\u003e\n"],["\u003cp\u003eA "Try It!" feature allows users to experiment with the method using live data.\u003c/p\u003e\n"]]],[],null,["# Comments: 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 the list of [Comments](/blogger/docs/2.0/json/reference/comments) for a [Post](/blogger/docs/2.0/json/reference/posts).\n[Try it now](#try-it).\n\nAuthentication is required if the comments are on a blog that is private. If the comments 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/postId/comments\n```\n\n### Parameters\n\n| Parameter Name | Value | Description |\n|----------------|--------------------|--------------------------------------------------------------------------|\n| **Required Parameters** |||\n| `blogId` | `string` | ID of the blog to fetch comments from. |\n| `postId` | `string` | ID of the post to fetch posts from. |\n| **Optional Parameters** |||\n| `fetchBodies` | `boolean` | Whether the body content of the comments is included. |\n| `maxResults` | `unsigned integer` | Maximum number of comments to include in the result. |\n| `pageToken` | `string` | Continuation token if request is paged. |\n| `startDate` | `datetime` | Earliest date of comment 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#commentList\",\n \"nextPageToken\": string,\n \"prevPageToken\": string,\n \"items\": [\n comments Resource\n ]\n}\n```\n\n| Property Name | Value | Description | Notes |\n|-----------------|----------|-------------------------------------------------------------|-------|\n| `kind` | `string` | The kind of this entry. Always `blogger#commentList`. | |\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 Comments Resources for the specified post. | |\n\nTry It!\n-------\n\n\nUse the explorer below to call this method on live data and see the response."]]