PostUserInfos: सूची
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
अनुमति की ज़रूरत है
पोस्ट और पोस्ट के उपयोगकर्ता की जानकारी के जोड़े की सूची दिखाता है. यह सूची फ़िल्टर की जा सकती है. पोस्ट के उपयोगकर्ता की जानकारी में, पोस्ट के बारे में हर उपयोगकर्ता की जानकारी होती है. जैसे, उपयोगकर्ता के लिए ऐक्सेस के अधिकार.
इसे अभी आज़माएं.
अनुरोध
एचटीटीपी अनुरोध
GET https://www.googleapis.com/blogger/v3/users/userId/blogs/blogId/posts
पैरामीटर
पैरामीटर का नाम |
मान |
ब्यौरा |
ज़रूरी पैरामीटर |
blogId |
string |
उस ब्लॉग का आईडी जिससे पोस्ट फ़ेच करनी हैं.
|
userId |
string |
हर उपयोगकर्ता की जानकारी फ़ेच करने के लिए, उपयोगकर्ता का आईडी. 'खुद' शब्द (कोटेशन मार्क के बिना) या उपयोगकर्ता की प्रोफ़ाइल का आइडेंटिफ़ायर.
|
ज़रूरी नहीं पैरामीटर |
endDate |
datetime |
फ़ेच करने के लिए, पोस्ट की गई तारीख. यह तारीख और समय, RFC 3339 फ़ॉर्मैट में होना चाहिए.
|
fetchBodies |
boolean |
पोस्ट के मुख्य हिस्से को शामिल करना है या नहीं. डिफ़ॉल्ट रूप से false होता है.
(डिफ़ॉल्ट: false )
|
labels |
string |
खोजने के लिए लेबल की कॉमा से अलग की गई सूची.
|
maxResults |
unsigned integer |
फ़ेच की जाने वाली पोस्ट की ज़्यादा से ज़्यादा संख्या.
|
orderBy |
string |
खोज के नतीजों को क्रम से लगाने का तरीका. डिफ़ॉल्ट रूप से published होता है.
ये वैल्यू डाली जा सकती हैं:
- "
published ": पोस्ट पब्लिश होने की तारीख के हिसाब से क्रम में लगाएं
- "
updated ": पोस्ट को पिछली बार अपडेट किए जाने की तारीख के हिसाब से क्रम में लगाएं
|
pageToken |
string |
जारी रखने वाला टोकन, जिसका इस्तेमाल बड़े नतीजों के सेट को पेज करने के लिए किया जाता है. नतीजों का अगला पेज पाने के लिए, इस पैरामीटर को पिछले जवाब से मिली "nextPageToken" वैल्यू पर सेट करें.
|
startDate |
datetime |
फ़ेच करने के लिए पोस्ट की सबसे पुरानी तारीख, आरएफ़सी 3339 फ़ॉर्मैट में तारीख-समय.
|
status |
string |
ये वैल्यू डाली जा सकती हैं:
- "
draft ": पोस्ट का ड्राफ़्ट
- "
live ": पब्लिश की गई पोस्ट
- "
scheduled ": ऐसी पोस्ट जिन्हें आने वाले समय में पब्लिश करने के लिए शेड्यूल किया गया है.
|
view |
string |
ये वैल्यू डाली जा सकती हैं:
- "
ADMIN ": एडमिन लेवल की जानकारी
- "
AUTHOR ": लेखक के लेवल की जानकारी
- "
READER ": रीडर लेवल की जानकारी
|
अनुमति देना
इस अनुरोध के लिए, इनमें से कम से कम एक स्कोप के साथ अनुमति की ज़रूरत है (पुष्टि और अनुमति के बारे में ज़्यादा पढ़ें).
दायरा |
https://www.googleapis.com/auth/blogger |
https://www.googleapis.com/auth/blogger.readonly |
अनुरोध का मुख्य भाग
इस तरीके का इस्तेमाल करते समय, अनुरोध का मुख्य हिस्सा न दें.
जवाब
अगर एपीआई सही से जुड़ जाता है, तो यह तरीका इस स्ट्रक्चर के साथ रिस्पॉन्स बॉडी दिखाता है:
{
"kind": "blogger#postUserInfosList",
"nextPageToken": string,
"items": [
postUserInfos Resource
]
}
प्रॉपर्टी का नाम |
मान |
ब्यौरा |
नोट |
kind |
string |
इस इकाई का टाइप. हमेशा blogger#postList |
|
nextPageToken |
string |
अगला पेज फ़ेच करने के लिए पेजेशन टोकन, अगर कोई मौजूद है. |
|
items[] |
list |
इस ब्लॉग के लिए, पोस्ट की उपयोगकर्ता जानकारी वाली पोस्ट की सूची. |
|
इसे आज़माएं!
लाइव डेटा पर इस तरीके को कॉल करने और रिस्पॉन्स देखने के लिए, नीचे दिए गए एपीआई एक्सप्लोरर का इस्तेमाल करें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-11-30 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-11-30 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eRetrieves a list of posts and user-specific information for those posts from a specified blog.\u003c/p\u003e\n"],["\u003cp\u003eAllows filtering of posts by date, labels, status, and other criteria.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with specific scopes for access.\u003c/p\u003e\n"],["\u003cp\u003eReturns paginated results with post and user information.\u003c/p\u003e\n"],["\u003cp\u003eCan be tested using the provided API Explorer.\u003c/p\u003e\n"]]],[],null,["# PostUserInfos: list\n\n**Requires [authorization](#auth)**\n\nRetrieves a list of post and post user info pairs, possibly filtered. The post user info contains per-user information about the post, such as access rights, specific to the user.\n[Try it now](#try-it).\n\nRequest\n-------\n\n### HTTP request\n\n```\nGET https://www.googleapis.com/blogger/v3/users/userId/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| `userId` | `string` | ID of the user for the per-user information to be fetched. Either the word 'self' (sans quote marks) or the user's profile identifier. |\n| **Optional parameters** |||\n| `endDate` | `datetime` | Latest post date to fetch, a date-time with RFC 3339 formatting. |\n| `fetchBodies` | `boolean` | Whether to include the post's body content. Default is `false`. (Default: `false`) |\n| `labels` | `string` | Comma-separated list of labels to search for. |\n| `maxResults` | `unsigned integer` | Maximum number of posts to fetch. |\n| `orderBy` | `string` | Sort order applied to search results. Default is `published`. \u003cbr /\u003e \u003cbr /\u003e Acceptable values are: - \"`published`\": Order by the date the post was published - \"`updated`\": Order by the date the post was last updated |\n| `pageToken` | `string` | The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of \"nextPageToken\" from the previous response. |\n| `startDate` | `datetime` | Earliest post date to fetch, a date-time with RFC 3339 formatting. |\n| `status` | `string` | Acceptable values are: - \"`draft`\": Draft posts - \"`live`\": Published posts - \"`scheduled`\": Posts that are scheduled to publish in future. |\n| `view` | `string` | Acceptable values are: - \"`ADMIN`\": Admin level detail - \"`AUTHOR`\": Author level detail - \"`READER`\": Reader level detail |\n\n### Authorization\n\nThis request requires authorization with at least one of the following scopes ([read more about authentication and authorization](/blogger/docs/3.0/using#auth)).\n\n| Scope |\n|----------------------------------------------------|\n| `https://www.googleapis.com/auth/blogger` |\n| `https://www.googleapis.com/auth/blogger.readonly` |\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#postUserInfosList\",\n \"nextPageToken\": string,\n \"items\": [\n postUserInfos 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| `items[]` | `list` | The list of Posts with User information for the post, for this Blog. | |\n\nTry it!\n-------\n\n\nUse the APIs Explorer below to call this method on live data and see the response."]]