private static final Logger log = LoggerFactory.getLogger(LiveTypeUpdate.class);
/**
* 修改研讨会会议类型
* @throws IOException
*/
@Test
public void testUpdateLiveType() throws IOException, NoSuchAlgorithmException {
//公共参数,填写自己的实际参数
String appId=super.appId;
String appSecret=super.appSecret;
String userId = super.userId;
String timestamp=String.valueOf(System.currentTimeMillis());
//业务参数
String url = "https://api.polyv.net/meet/v1/channel/live-type/update";
String channelId = "3589029";
String body = "{\n" +
" \"seminarLiveType\":\"public\"\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
}