更新时间:2022-08-25 GMT+08:00
设置霸屏应用包名
应用场景
该接口可设置当前大屏显示的应用。
前提条件
已完成登录认证,参考登录认证。
接口概述
本接口可以设置显示的应用,接口详情请参考设置霸屏应用包名
请求URL
/action.cgi?ActionID=WEB_SetSingleAppAPI
private static void WEB_SetSingleAppAPI() {
String uri = baseUrl + "/action.cgi?ActionID=WEB_SetSingleAppAPI";
JSONObject itemInt = new JSONObject();
itemInt.put("CfgItemID","packageName");
itemInt.put("CfgItemInfo",pkgName);
JSONArray itemIntArray = new JSONArray();
itemIntArray.add(itemInte);
JSONArray itemStrArray = new JSONArray();
JSONObject obj = new JSONObject();
obj.put("CfgItemInt", itemIntArray);
obj.pub("CfgItemString", itemStrArray);
obj.put("acCSRFToken", token);
JSONObject result = HttpClientUtil.post(uri, obj, null);
}
token的值为上述login操作获取的值,霸屏应用设置成功返回报文
{"success":1,"data":""}
父主题: 开发指南