private static final Logger log = LoggerFactory.getLogger(WhitelistDelete.class);
/**
* 删除单个白名单
* @throws IOException
*/
@Test
public void testWhitelistDelete() 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/auth-whitelist/delete";
String channelId = "2191532";
String body = "{\n" +
" \"code\": \"111\"\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
}