پست ها: دریافت کنید
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
مهم : ما پشتیبانی از v2.0 JSON API را در 30 سپتامبر 2024 متوقف خواهیم کرد. برای اطمینان از ادامه عملکرد، برنامههای کاربردی خود را که به v2.0 JSON API متکی هستند به آخرین نسخه API بهروزرسانی کنید. برای آخرین نسخه، از پیوندهای موجود در نوار ناوبری سمت چپ استفاده کنید.
یک پست را توسط postId بازیابی می کند. الآن امتحانش کن .
اگر پست در وبلاگی که خصوصی است، احراز هویت لازم است. اگر پست در یک وبلاگ عمومی است، این روش را می توان بدون احراز هویت فراخوانی کرد.
درخواست
درخواست HTTP
GET https://www.googleapis.com/blogger/v2/blogs/blogId/posts/postId
مولفه های
نام پارامتر | ارزش | شرح |
---|
پارامترهای مورد نیاز |
blogId | string | شناسه وبلاگ برای دریافت پست از آن. |
postId | string | شناسه پست |
درخواست بدن
با این روش بدنه درخواستی ارائه نکنید.
واکنش
در صورت موفقیت آمیز بودن، این روش یک منبع Posts را در بدنه پاسخ برمی گرداند.
آن را امتحان کنید!
از کاوشگر زیر برای فراخوانی این روش در داده های زنده و مشاهده پاسخ استفاده کنید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-06-26 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-06-26 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eSupport for the v2.0 JSON API will end on September 30, 2024, requiring applications to be updated to the latest API version for continued functionality.\u003c/p\u003e\n"],["\u003cp\u003eThis API retrieves a single blog post using its unique ID and the blog's ID.\u003c/p\u003e\n"],["\u003cp\u003eAuthentication is necessary only for accessing posts on private blogs, while public blog posts can be retrieved without authentication.\u003c/p\u003e\n"]]],[],null,["# Posts: get\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 one post by postId.\n[Try it now](#try-it).\n\nAuthentication is required if the post is on a blog that is private. If the post is on a blog 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\n```\n\n### Parameters\n\n| Parameter Name | Value | Description |\n|----------------|----------|----------------------------------------|\n| **Required Parameters** |||\n| `blogId` | `string` | ID of the blog to fetch the post from. |\n| `postId` | `string` | The ID of the post |\n\n### Request Body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a [Posts resource](/blogger/docs/2.0/json/reference/posts#resource) in the response body.\n\nTry It!\n-------\n\n\nUse the explorer below to call this method on live data and see the response."]]