获取观看直播统计
POST
/cgi-bin/school/living/get_watch_stat
服务端API企业内部开发第三方应用开发
原文档地址:
https://open.work.weixin.qq.com/api/doc/90000/90135/93741
https://open.work.weixin.qq.com/api/doc/90001/90143/93858
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://qyapi.weixin.qq.com/cgi-bin/school/living/get_watch_stat?access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{"livingid":"livingid1","next_key":"NEXT_KEY"}'
响应示例响应示例
{
"errcode": 0,
"errmsg": "ok",
"ending": 1,
"next_key": "NEXT_KEY",
"stat_infoes": {
"students": [
{
"student_userid": "zhansan_child",
"parent_userid": "zhangsan",
"partyids": [
10,
11
],
"watch_time": 30,
"enter_time": 1586433904,
"leave_time": 1586434000,
"is_comment": 1
},
{
"student_userid": "lisi_child",
"parent_userid": "lisi",
"partyids": [
10,
11
],
"watch_time": 30,
"enter_time": 1586433904,
"leave_time": 1586434000,
"is_comment": 0
}
],
"visitors": [
{
"nickname": "wx_nickname1",
"watch_time": 30,
"enter_time": 1586433904,
"leave_time": 1586434000,
"is_comment": 1
},
{
"nickname": "wx_nickname2",
"watch_time": 30,
"enter_time": 1586433904,
"leave_time": 1586434000,
"is_comment": 0
}
]
}
}
请求参数
Query 参数
access_token
调用接口凭证
示例值:
{{accesstoken}}
Body 参数application/json