Skip to main content
POST
/
open
/
api
/
phone
/
file
/
scan
Phone file scan
curl --request POST \
  --url https://user.pmock.com/api/open/api/phone/file/scan \
  --header 'Content-Type: application/json' \
  --data '
{
  "phoneId": 123,
  "pageSize": 123,
  "pageNum": 123,
  "parentDir": "<string>"
}
'
{
  "traceId": "",
  "code": 0,
  "msg": "",
  "data": {
    "parentDir": "",
    "fileList": {
      "traceId": "",
      "total": 0,
      "rows": [
        {
          "path": "",
          "name": "",
          "type": 0,
          "size": 0,
          "convertSize": ""
        }
      ],
      "code": 0,
      "msg": ""
    }
  },
  "status": ""
}

Body

application/json
phoneId
integer<int64>
required

Phone ID,obtain through Get phone list api

pageSize
integer

Number of records displayed per page The default is1,and the maximum number of items in a single query is:1

pageNum
integer

Current page count

parentDir
string

Parent directory,Get all the file directories under this folder

Response

200 - application/json
traceId
string
required

Request link ID

code
integer
required

code

msg
string
required

Request return message

status
string
default:finish
required

Status, representing whether this is an instant completion or waiting state, finish or pending

data
object

Request return data