/**
* 修改页脚设置
* @throws IOException
* @throws NoSuchAlgorithmException
*/
@Test
public void updateGlobalFooterSettingTest() throws IOException, NoSuchAlgorithmException {
//公共参数,填写自己的实际参数
String appId = super.appId;
String appSecret = super.appSecret;
String timestamp = String.valueOf(System.currentTimeMillis());
//业务参数
String url = "http://api.polyv.net/live/v4/user/global-setting/footer/update";
String showFooterEnabled = "Y";
String footerText = "保利威提供技术支持";
String footTextLinkProtocol = "https://";
String footTextLinkUrl = "www.polyv.net";
//http 调用逻辑
Map<String, String> requestMap = new HashMap<>();
requestMap.put("appId", appId);
requestMap.put("timestamp", timestamp);
requestMap.put("sign", LiveSignUtil.getSign(requestMap, appSecret));
Map<String, Object> jsonMap = new HashMap<>();
jsonMap.put("showFooterEnabled", showFooterEnabled);
jsonMap.put("footerText", footerText);
jsonMap.put("footTextLinkProtocol", footTextLinkProtocol);
jsonMap.put("footTextLinkUrl", footTextLinkUrl);
url = HttpUtil.appendUrl(url, requestMap);
String response = HttpUtil.postJsonBody(url, JSON.toJSONString(jsonMap), null);
log.info("测试修改页脚设置成功:{}", response);
//do somethings
}