设置头像
POST
/set_qq_avatar
请求参数
Body 参数application/json
file
string
路径或链接
示例
{
// 本地路径
"file": "D:/a.jpg"
// 网络路径
// "file": "http://i0.hdslb.com/bfs/archive/c8fd97a40bf79f03e7b76cbc87236f612caef7b2.png"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/set_qq_avatar' \
--header 'Content-Type: application/json' \
--data-raw '{
// 本地路径
"file": "D:/a.jpg"
// 网络路径
// "file": "http://i0.hdslb.com/bfs/archive/c8fd97a40bf79f03e7b76cbc87236f612caef7b2.png"
}'
返回响应
🟢200成功
application/json
Body
status
enum<string>
必需
枚举值:
ok
retcode
number
必需
data
null
必需
message
string
必需
wording
string
必需
echo
string | null
必需
示例
{
"status": "ok",
"retcode": 0,
"data": null,
"message": "string",
"wording": "string",
"echo": "string"
}
修改于 2024-10-28 12:29:14