POST https://XXXXXX/api/portrait/get
==> Body => raw ==> JSON
==> Header Content-Type:application/json
Body==> JSON(application/json)
{
"deviceIds": [
"XXXXX"
],
"schoolId": "XXXXX",
"accessToken": "string",
"pageNum": 0,
"pageSize": 1000,
"userId": 0,
"login": "string",
"accountType": 0,
"clientVersion": "string"
}
Send
Reply
{
"data": [
{
"id": "XXXXX",
"studentId": "XXXXX",
"portraitUrl": "XXXXXXXXXX",
"portraitUrlHost": "XXXX.XXXXX.com",
"name": "XXXX",
"methodType": 0
},
{
"id": "XXX",
"studentId": "XXX",
"portraitUrl": "XXXX",
"portraitUrlHost": "XXXX.XXXX.com",
"name": "XXXX",
"methodType": 0
}
],
"success": true,
"code": 0,
"message": null
}
注 在无数据时 返回
{
"data": [],
"success": true,
"code": 0,
"message": null
}
Postman ===> Code ==> Curl or wget
curl --location --request POST 'https://XXXXX/api/manage/portrait/get' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceIds": [
"XXXX"
],
"schoolId": "XXXX",
"accessToken": "string",
"pageNum": 0,
"pageSize": 1000,
"userId": 0,
"login": "string",
"accountType": 0,
"clientVersion": "string"
}'