private static final Logger log = LoggerFactory.getLogger(UpdateSettingPost.class);
/**
* 查询分组记录
* @throws IOException
*/
@Test
public void testUpdateSettingPost() throws IOException, NoSuchAlgorithmException {
//公共参数,填写自己的实际参数
String appId=super.appId;
String appSecret=super.appSecret;
String userId = super.userId;
String timestamp=String.valueOf(System.currentTimeMillis());
//业务参数
String url = "api.polyv.net/live/v4/seminar/monitor/updateSetting";
String channelId = "2191532";
String body = "{\n" +
" \"enable\":\"N\"\n" +
"}";
//http 调用逻辑
Map<String,String> requestMap = new HashMap<>();
requestMap.put("appId", appId);
requestMap.put("timestamp",timestamp);
requestMap.put("channelId",channelId);
requestMap.put("sign",LiveSignUtil.getSign(requestMap, appSecret));
url = HttpUtil.appendUrl(url, requestMap);
String response = HttpUtil.postJsonBody(url, body, null);
log.info("测试修改轮询监控开关接口返回值:{}",response);
//do somethings
}