Postman example

 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"
}'

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章