帖子:get
重要提示:我们将于 2024 年 9 月 30 日停止支持 2.0 版 JSON API。为确保可继续使用功能,请将依赖 v2.0 JSON API 的应用更新到最新 API 版本。如需获取最新版本,请使用左侧导航栏中的链接。
按 postId 检索一篇帖子。
立即尝试。
如果博文是在私密博客上发布的,那么您必须进行身份验证。如果博文是公开的,那么无需身份验证即可调用此方法。
请求
HTTP 请求
GET https://www.googleapis.com/blogger/v2/blogs/blogId/posts/postId
参数
参数名称 |
值 |
说明 |
必需参数 |
blogId |
string |
要从中提取帖子的博客 ID。
|
postId |
string |
帖子的 ID
|
请求正文
使用此方法时请勿提供请求正文。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-06-26。
[null,null,["最后更新时间 (UTC):2024-06-26。"],[[["Support 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."],["This API retrieves a single blog post using its unique ID and the blog's ID."],["Authentication is necessary only for accessing posts on private blogs, while public blog posts can be retrieved without authentication."]]],[]]