http://api.polyv.net/live/v3/channel/chat/content/create-task
1、异步下载聊天室聊天记录接口
2、如果异步下载成功,返回下载地址,下载地址有效期一天
2、接口支持https
{
"code": 200,
"status": "success",
"message": "",
"data": {
"status": "done",
"url": "https://doc-oss.polyv.net/chat/export/xls/130760/130760_1597804097778.xls",
"lastExportTime": 1597804097778
}
}
{
"code": 400,
"status": "error",
"message": "appId is required.",
"data": ""
}
{
"code": 400,
"status": "error",
"message": "application not found.",
"data": ""
}
{
"code": 400,
"status": "error",
"message": "invalid timestamp.",
"data": ""
}
{
"code": 403,
"status": "error",
"message": "invalid signature.",
"data": ""
}
public static void main(String[] args) {
String url = "http://api.polyv.net/live/v3/channel/chat/content/create-task";
// 用户对应的appId和加密串
String appId = "xxxxxxxxx";
String appSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxx";
Map<String, String> params = new HashMap<>();
params.put("channelId", "0000000");
PolyvTool.setLiveSign(params, appId, appSecret);
// 调用Polyv的httpClient工具类发送请求
String content = HttpClientUtil.getInstance()
.sendHttpPost(url, params);
System.out.println(content);
}