更换群头像
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| key | string | 是 | 接口调用密钥 | |
| string | 是 | QQ账号 | 3121871622 | |
| skey | string | 是 | QQ号的skey | xxxx |
| url | string | 是 | 图片链接 | https://tc.317ak.com/i/2024/11/21/912252.webp |
| group | string | 是 | 需要更换头像的群号 | 734407963 |
| type | string | 否 | 输出格式,默认text,可选text/json | json |
[
{
"name": "key",
"type": "string",
"required": true,
"description": "接口调用密钥",
"example": ""
},
{
"name": "qq",
"type": "string",
"required": true,
"description": "QQ账号",
"example": "3121871622"
},
{
"name": "skey",
"type": "string",
"required": true,
"description": "QQ号的skey",
"example": "xxxx"
},
{
"name": "url",
"type": "string",
"required": true,
"description": "图片链接",
"example": "https://tc.317ak.com/i/2024/11/21/912252.webp"
},
{
"name": "group",
"type": "string",
"required": true,
"description": "需要更换头像的群号",
"example": "734407963"
},
{
"name": "type",
"type": "string",
"required": false,
"description": "输出格式,默认text,可选text/json",
"example": "json"
}
]
{
"openapi": "3.1.1",
"info": {
"title": "QQ群换头像",
"description": "更换群头像",
"version": "1.0.0"
},
"paths": {
"/api/QQ/quntx/api.php": {
"get": {
"summary": "QQ群换头像",
"description": "更换群头像",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "qq",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "3121871622"
},
"description": "QQ账号"
},
{
"name": "skey",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "xxxx"
},
"description": "QQ号的skey"
},
{
"name": "url",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "https://tc.317ak.com/i/2024/11/21/912252.webp"
},
"description": "图片链接"
},
{
"name": "group",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "734407963"
},
"description": "需要更换头像的群号"
},
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "json"
},
"description": "输出格式,默认text,可选text/json"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
},
"post": {
"summary": "QQ群换头像",
"description": "更换群头像",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "qq",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "3121871622"
},
"description": "QQ账号"
},
{
"name": "skey",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "xxxx"
},
"description": "QQ号的skey"
},
{
"name": "url",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "https://tc.317ak.com/i/2024/11/21/912252.webp"
},
"description": "图片链接"
},
{
"name": "group",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "734407963"
},
"description": "需要更换头像的群号"
},
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "json"
},
"description": "输出格式,默认text,可选text/json"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"servers": [
{
"url": "https://api.317ak.com",
"description": "当前访问入口(https)"
}
]
}
{
"code": 1,
"msg": "数据提交完成,请查看是否成功!"
}
用于更换 QQ 群头像,帮助开发者通过接口提交头像更换操作。
适用于需要自动化管理 QQ 群资料的应用场景。
https://api-v2.317ak.com/api/QQ/quntx/api.php
支持请求方式:GET、POST
本接口调用需要密钥。
首选鉴权方式:Query 参数传递密钥。
请求时需携带:
key=接口调用密钥
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| key | string | 是 | 接口调用密钥 |
| string | 是 | QQ账号 | |
| skey | string | 是 | QQ号的skey |
| url | string | 是 | 图片链接 |
| group | string | 是 | 需要更换头像的群号 |
| type | string | 否 | 输出格式,默认text,可选text/json |
{
"code": 1,
"msg": "数据提交完成,请查看是否成功!"
}
| 字段 | 类型 | 说明 |
|---|---|---|
| code | integer | 请求处理状态标识 |
| msg | string | 请求处理结果描述 |
{"code":0,"msg":"未提供调用密钥","errcode":11001}
| errcode | 含义 |
|---|---|
| 11001 | 未提供调用密钥 |
| 11002 | 密钥错误 |
| 11003 | 密钥已禁用 |
| 11004 | 积分余额不足 |
| 11005 | 请求过于频繁(QPM 限制) |
| 11006 | 接口维护中 |
| 11007 | 接口已禁用 |
| 11008 | 接口不可用 |
| 11009 | 密钥校验暂不可用 |
| 11010 | 积分系统暂不可用 |
| 11011 | 收费接口须提供有效密钥 |
| 11012 | 鉴权方式错误 |
| 11013 | 接口不存在 |
| 11014 | 地址无效 |
| 11015 | 地址不允许 |
| 11016 | 请求处理失败 |
| 11017 | 服务暂不可用 |
| 11018 | 请求方式不允许 |
| 11019 | 当前IP不在白名单内 |
| 11020 | 启用指定访问服务须提供有效密钥 |
| 11021 | 未配置可用访问服务 |
| 11022 | 访问服务不可用 |
| 11023 | 密钥已过期 |
| 11024 | 令牌分配积分不足 |
curl -G "https://api-v2.317ak.com/api/QQ/quntx/api.php" \
--data-urlencode "key=你的接口密钥" \
--data-urlencode "qq=3121871622" \
--data-urlencode "skey=xxxx" \
--data-urlencode "url=https://tc.317ak.com/i/2024/11/21/912252.webp" \
--data-urlencode "group=734407963" \
--data-urlencode "type=json"
## 注意事项
- 调用接口前请确保已配置有效密钥,并妥善保管 `key` 参数,避免泄露或被他人滥用。
- `key` 参数需通过 Query 方式传递,例如请求时携带 `key=...`。
- 请勿将接口密钥直接暴露在前端页面、公开代码仓库或可被用户获取的位置,建议在服务端环境中进行接口调用。
- 请求接口时建议使用 HTTPS 连接,以保障请求过程中的数据安全。
- `qq` 与 `group` 参数需填写正确的 QQ 账号及目标群号,否则可能导致头像更换失败。
- `skey` 参数需对应填写目标 QQ 账号的有效信息,参数失效或错误时可能无法完成操作。
- `url` 参数必须为可访问的图片链接,建议使用稳定的图片地址,并确保图片符合 QQ 群头像上传要求。
- `type` 参数为可选项,未填写时默认返回文本格式;如需结构化返回,可设置为 `json`。
- 请根据接口调用频率合理安排请求,避免短时间内大量重复提交导致调用异常。
- 接口返回“数据提交完成”仅表示请求已提交,请结合实际群头像状态确认最终更换结果。curl -G "https://api-v2.317ak.com/api/QQ/quntx/api.php" \
--data-urlencode "key=YOUR_API_KEY" \
--data-urlencode "qq=3121871622" \
--data-urlencode "skey=xxxx" \
--data-urlencode "url=https://tc.317ak.com/i/2024/11/21/912252.webp" \
--data-urlencode "group=734407963" \
--data-urlencode "type=json"