Skip to main content
POST
/
open
/
api
/
app
/
install
Phone install app
curl --request POST \
  --url https://user.pmock.com/api/open/api/app/install \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": 123,
  "fileId": 123,
  "apkPkg": "<string>",
  "apkVersionName": "<string>",
  "apkVersionCode": 123,
  "apkName": "<string>",
  "withG": false,
  "upgrade": false
}
'
{
  "traceId": "",
  "code": 0,
  "msg": "",
  "data": {
    "taskId": 0
  },
  "status": ""
}

Body

application/json
id
integer<int64>
required

Phone ID, The Get phone list returns the ID contained in the data.

fileId
integer<int64>
required

App version ID,Obtain (the id of the app version list) through Get App list

apkPkg
string
required

Application package name,Obtain through Get App list

apkVersionName
string
required

APK version name,Obtain through Get App list

apkVersionCode
integer
required

APK version code,Obtain through Get App list

apkName
string
required

Application name,Obtain through Get App list

withG
boolean
default:false

Whether to grant all permissions to the application

upgrade
boolean
default:false

Whether to upgrade the application, if it is true, install the latest app(default:false)

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