dingtalk.oapi.live.grouplive.list (查询内部群直播的列表)

查询内部群的直播列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
cid Number 必须 123456 群id
open_id Number 可选 12345 用户id
to_time Number 可选 1234567890 开始时间ms
from_time Number 可选 1234599999 截止时间ms

响应参数

名称 类型 示例值 描述
result Result [] 返回列表
  • └ is_landscape
  • Boolean
  • 1
  • 是否横屏
  • └ cid
  • Number
  • 1234456
  • 群id
  • └ live_uuid
  • String
  • 3ca3c2e4-258a-4808-94eb-a17ddceb7a2a
  • 直播id
  • └ open_id
  • Number
  • 149777
  • openid
  • └ title
  • String
  • 直播测试
  • 标题
  • └ start_time
  • Number
  • 1234567890
  • 开始时间ms
  • └ duration
  • Number
  • 2000000
  • 时长
errcode Number 1 错误码
errmsg String 直播不存在 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://oapi.dingtalk.com/topapi/live/grouplive/list");
OapiLiveGroupliveListRequest req = new OapiLiveGroupliveListRequest();
req.setCid(123456L);
req.setOpenId(12345L);
req.setToTime(1234567890L);
req.setFromTime(1234599999L);
OapiLiveGroupliveListResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • JSON示例
{
    "result":[
        {
                "is_landscape":1,
                "cid":1234456,
                "live_uuid":"3ca3c2e4-258a-4808-94eb-a17ddceb7a2a",
                "open_id":149777,
                "title":"直播测试",
                "start_time":1234567890,
                "duration":2000000
        }
    ],
    "errcode":1,
    "errmsg":"直播不存在"
}

异常示例

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

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部