查询好友信息
本地开发环境
本地开发环境
POST
/getUser
最后修改时间:2023-06-04 13:09:48
请求参数
Header 参数
X-Token
string
必需
默认值:
yoyohuhu
Body 参数application/json
botId
string
必需
userId
string
必需
示例
{
"botId": "{{botId}}",
"userId": "{{userId}}"
}
示例代码
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/getUser' \
--header 'X-Token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"botId": "{{botId}}",
"userId": "{{userId}}"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
data
object
必需
email
string
必需
id
string
必需
name
string
必需
remark
string
必需
sign
string
必需
sex
integer
必需
age
integer
必需
country
string
必需
province
string
必需
city
string
必需
level
integer
必需
likeTotal
integer
必需
online
string
必需
todayLikedTotal
integer
必需
group
string
必需
possibleLikeTotal
integer
必需
continuousOnlineDayTotal
integer
必需
示例
{
"code": 0,
"data": {
"email": "",
"id": "13131003",
"name": "楠哥",
"remark": "",
"sign": "",
"sex": 2,
"age": 27,
"country": "",
"province": "",
"city": "",
"level": 45,
"likeTotal": 1491,
"online": "",
"todayLikedTotal": 0,
"group": "",
"possibleLikeTotal": 1,
"continuousOnlineDayTotal": 1302
}
}
修改于 2023-06-04 13:09:48