dingtalk.oapi.live.grouplive.detail.get (查询群直播详情信息)

查询直播详情信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
req GroupLiveStatisticsReq 必须 群直播详情请求
  • └ live_uuid
  • String
  • 必须
  • 53b20173-c0c9-4d35-9dbd-869f2cbb43d8
  • 群直播id
  • └ dept_id
  • Number
  • 必须
  • 123456
  • 直播所属群对应部门id

响应参数

名称 类型 示例值 描述
result GroupLiveStatistics {} 直播详情
  • group_live_viewers
  • Groupliveviewers []
  • 查看人员列表
  • └ play_record_duration
  • Number
  • 10
  • 回放观看时长
  • └ play_duration
  • Number
  • 10
  • 直播观看时长
  • └ userid
  • String
  • userId123
  • 观看用户userid
  • └ live_share_url
  • String
  • https://h5.dingtalk.com/group-live-share/index.htm?encCid=25a56bce1751980054b64ef102a5841e&liveUuid=53b20173-c0c9-4d35-9dbd-869f2cbb43d8#/
  • 群直播分享url
  • └ unviewed_count
  • Number
  • 12
  • 未看人数
  • └ viewer_count
  • Number
  • 11
  • 已看人数
  • └ message_count
  • Number
  • 10
  • 消息数
  • └ praise_count
  • Number
  • 99
  • 点赞数
  • └ pv
  • Number
  • 10
  • 直播观看人次
errmsg String ok 错误描述
errcode Number 0 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/live/grouplive/detail/get");
OapiLiveGroupliveDetailGetRequest req = new OapiLiveGroupliveDetailGetRequest();
GroupLiveStatisticsReq obj1 = new GroupLiveStatisticsReq();
obj1.setLiveUuid("53b20173-c0c9-4d35-9dbd-869f2cbb43d8");
obj1.setDeptId(123456L);
req.setReq(obj1);
OapiLiveGroupliveDetailGetResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • JSON示例
{
    "result":{
        "group_live_viewers":[
            {
                    "play_record_duration":10,
                    "play_duration":10,
                    "userid":"userId123"
            }
        ],
        "live_share_url":"https:\/\/h5.dingtalk.com\/group-live-share\/index.htm?encCid=25a56bce1751980054b64ef102a5841e&liveUuid=53b20173-c0c9-4d35-9dbd-869f2cbb43d8#\/",
        "unviewed_count":12,
        "viewer_count":11,
        "message_count":10,
        "praise_count":99,
        "pv":10
    },
    "errmsg":"ok",
    "errcode":0
}

异常示例

  • JSON示例
{
	"errcode":88,
	"errmsg":"ding talk error"
}

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部