get_qzone_feeds

get_qzone_feeds只读空间
获取 QQ 空间好友动态(feed);page_num 仅首页可靠,深翻页需时间游标(暂未实现)

通过 POST http://127.0.0.1:3000/get_qzone_feeds(请求体为 JSON 参数)或 WebSocket 调用。

输入参数

参数 类型 必填 默认 说明
page_num int 1 页码(1 起;仅首页可靠)
count int 10 本页数量

返回 (data)

好友动态对象,含本页 feed 数组与是否有更多页。

所有响应都包裹在标准信封中:{ "status": "ok", "retcode": 0, "data": ... }。下表描述 data 字段。

字段 类型 必填 说明
feeds object[] 本页好友动态数组
has_more boolean 服务端是否报告本页之后还有更多页
原始 JSON Schema
{
  "type": "object",
  "properties": {
    "feeds": {
      "type": "array",
      "description": "本页好友动态数组",
      "items": {
        "type": "object",
        "properties": {
          "uin": {
            "type": "integer",
            "description": "动态作者 QQ 号"
          },
          "nickname": {
            "type": "string",
            "description": "作者昵称"
          },
          "time": {
            "type": "integer",
            "description": "发表时间(unix 秒)"
          },
          "appid": {
            "type": "integer",
            "description": "Qzone 应用 id(311=说说,4=相册,…)"
          },
          "key": {
            "type": "string",
            "description": "feed 句柄(Qzone 用于定位该条动态)"
          },
          "html": {
            "type": "string",
            "description": "预渲染 HTML 原样透传"
          }
        },
        "required": [
          "uin",
          "nickname",
          "time",
          "appid",
          "key",
          "html"
        ]
      }
    },
    "has_more": {
      "type": "boolean",
      "description": "服务端是否报告本页之后还有更多页"
    }
  },
  "required": [
    "feeds",
    "has_more"
  ]
}

调用示例

curl
Python
JavaScript
Go
SnowLuma SDK
curl -X POST http://127.0.0.1:3000/get_qzone_feeds \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <access-token>' \
  -d '{"page_num":1,"count":10}'
在用 AI 助手?

支持 MCP 的客户端可直接发现并调用本动作,无需手写 HTTP。见 MCP 接入