• 售前顾问:400-618-6615


  • 销售顾问

  • 申请试用

销售服务热线: 400-618-6615   在线微信客服

接口文档

开发平台首页>

pushMdmControl 接口

  • 预计上线时间 2022-12-25

概述

该接口批量向多员工的手机设备下发移动设备硬件管控指令

请求URL

https://api-hub.mobilegate.net/pushMdmControl


请求方式

POST


请求参数

参数名 备注
enterpriseId 企业账号ID(详见管理控制台->开发信息)
mdmPushContents - phoneId 待接收硬件管控指令的工作手机账号ID
mdmPushContents - mdmCommand 硬件管控指令,详情请参考硬件管控指令集
requestToken 签名(详见 参数签名

请求包体格式

JSON

请求包体示例

{
	"enterpriseId": "589083",
	"mdmPushContents": [{
		"phoneId": "15900159000",
		"mdmCommand": "{%MDMCOMMAND%}"
	}, {
		"phoneId": "15900159001",
		"mdmCommand": "{%MDMCOMMAND%}"
	}],
	"requestToken": "xxxxxxxxxxxxxxxx"
}

硬件管控指令集

选择以下任意指令(红色字体),可替代上述JSON体中的 {%MDMCOMMAND%}

emmcommandcameradisable 禁用摄像头

emmcommandcameraenable 启用摄像头

emmcommandwifidisable 禁用WIFI

emmcommandwifienable 启用WIFI

emmcommandwifiopen 打开WIFI

emmcommandwificlose 关闭WIFI

emmcommandwififorceopen 强开WIFI

emmcommandbluetoothdisable 禁用蓝牙

emmcommandbluetoothenable 启用蓝牙

emmcommandbluetoothopen 打开蓝牙

emmcommandbluetoothclose 关闭蓝牙

emmcommandbluetoothforceopen 强开蓝牙

emmcommandgpsdisable 禁用GPS

emmcommandgpsenable 启用GPS

emmcommandgpsopen 打开GPS

emmcommandgpsclose 关闭GPS

emmcommandgpsforceopen 强开GPS

emmcommandnfcdisable 禁用NFC

emmcommandnfcenable 启用NFC

emmcommandnfcopen 打开NFC

emmcommandnfcclose 关闭NFC

emmcommandnfcforceopen 强开NFC

emmcommandmtpdisable 禁用电脑USB文件通讯(MTP)

emmcommandmtpenable 启用电脑USB文件通讯(MTP)

emmcommandfactoryresetdisable 禁用恢复出厂设置

emmcommandfactoryresetenable 启用恢复出厂设置

emmcommandsystemupdatedisable 禁用系统更新

emmcommandsystemupdateenable 启用系统更新

emmcommandtimesetdisable 禁用时间设置

emmcommandtimesetenable 启用时间设置

emmcommandscreencapturedisable 禁用截屏

emmcommandscreencaptureenable 启用截屏

emmcommandvpndisable 禁用VPN

emmcommandvpnenable 启用VPN

emmcommandcelldisable 禁用蜂窝数据

emmcommandcellenable 启用蜂窝数据

emmcommanddmformatsd 远程格式化SD卡

emmcommanddmrecover 远程恢复出厂设置

emmcommanddmshutdown 远程关闭手机

emmcommanddmrestart 远程重启手机

LOCON 启用工作手机定位(摩盖组件范围)

LOCOFF 关闭工作手机定位(摩盖组件范围)


返回结果

参数名 备注
result 返回结果
details 推送失败的工作手机账号账号ID,数组类型

result 字符串“1” 代表全部推送成功, “0”代表存在不成功的推送,其他请参考下方错误码;

details当存在推送失败的情形时,以数组方式返回推送失败的工作手机账号账号ID;


返回格式

JSON

返回示例

{
	"result": "1",
	"details": []
}

异常返回

存在推送失败的情形

  
{
	"result": "0",
	"details": ["15900159001", "15900159002"]
}
                                       

输入参数错误

{"Result": "-1"}

参数含有非法字符

{"Result": "-2"}

enterpriseID未提供

{"Result": "-3"}

参数签名错误

{"Result": "-99"}