上传好友图片
本地开发环境
本地开发环境
POST
/uploadUserImage
最后修改时间:2023-06-06 12:03:25
请求参数
Header 参数
X-Token
string
必需
默认值:
yoyohuhu
Body 参数application/json
botId
string
必需
userId
string
必需
image
string
必需
isTemp
boolean
闪照
isGif
boolean
动图
示例
{
"botId": "string",
"userId": "string",
"image": "string",
"isTemp": true,
"isGif": true
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost/uploadUserImage' \
--header 'X-Token;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
data
object
必需
imageCode
string
必需
示例
{
"code": 0,
"data": {
"imageCode": "[pic,hash=6AF21A0BV07303AC6A2AB1DCBA70F2142,guid=/41244425-838233908-6AF21A0A07303AC6A2AB1DCBA70F2142,wide=0,high=0,cartoon=false]"
}
}
修改于 2023-06-06 12:03:25