删除标签
接口描述
1、删除标签
2、接口支持https协议接口URL
https://api.polyv.net/live/v4/user/label/delete请求方式
GET接口约束
请求参数描述
参数名
必选
类型
说明
示例
响应参数描述
参数名
类型
说明
Error参数描述
参数名
类型
说明
Java请求示例
响应示例
Last updated
1、删除标签
2、接口支持https协议https://api.polyv.net/live/v4/user/label/deleteGETLast updated
https://api.polyv.net/live/v4/user/label/delete?appId=frlr1zazn3×tamp=1670471250000&sign=149397BFD607C518A841DAF8777D6A7E&labelId=zpmz3640wkxpj267private final Logger log = LoggerFactory.getLogger(getClass());
/**
* 查询组织架构列表
* @throws IOException
* @throws NoSuchAlgorithmException
*/
@Test
public void deleteLabelTest() throws IOException, NoSuchAlgorithmException {
//公共参数,填写自己的实际参数
String appId = super.appId;
String appSecret = super.appSecret;
String timestamp = String.valueOf(System.currentTimeMillis());
String labelId = "zpmz3640wkxpj267";
//业务参数
String url = "https://api.polyv.net/live/v4/user/label/delete";
//http 调用逻辑
Map<String, String> requestMap = new HashMap<>();
requestMap.put("appId", appId);
requestMap.put("timestamp", timestamp);
requestMap.put("labelId", labelId);
requestMap.put("sign", LiveSignUtil.getSign(requestMap, appSecret));
String response = HttpUtil.get(url, requestMap);
log.info("测试删除标签成功:{}", response);
//do somethings
}{
"code": 200,
"status": "success",
"requestId": "e4faf1183b2c4ff493e6aeb192209b25.72.16994949189217641",
"data": null,
"success": true
}{
"code": 400,
"status": "error",
"requestId": "d310b70bc329403f87f77f9203d50f89.128.16360831552223589",
"error": {
"code": 20001,
"desc": "application not found."
},
"success": false
}