1. 首页
  2. API 文档
  3. QQ 宠物
  4. get_pet_profile

get_pet_profile

  • 发布于 2026-08-16
  • 46 次阅读

API 开源贡献者:星空花海

档案、生日、性别、等级经验与已获勋章。

  • action:get_pet_profile
  • 支持协议:Android。
  • 调用方式:普通插件 API;仅接受对象参数。

请求参数

参数 类型 必填 说明
self_id number 在线机器人 QQ 号
client_type string 当前实现支持 android;须使用 Android 账号

调用示例

const result = await api.get_pet_profile({
  "self_id": 123456,
  "client_type": "android"
})

返回结果

pet_id、user_id、pet_name、avatar_url、生日、性别、等级经验及 medals。source 为 profile 或 cache;缓存档案含 partial=true。

参数或业务错误会使调用失败。写入请求结果未知时,请先读取当前状态确认,勿直接重复提交。