dingtalk.smartwork.blackboard.listtopten (列出用户的公告列表)

列出用户当前有权限看到的10条公告,可用于在企业自定义工作首页进行公告轮播展示

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
userid String 必须 manager01 用户id

响应参数

名称 类型 示例值 描述
result DingOpenResult result
  • └ ding_open_errcode
  • Number
  • 0
  • dingOpenErrcode
  • └ error_msg
  • String
  • 成功
  • errorMsg
  • └ success
  • Boolean
  • true
  • success
  • blackboard_list
  • OapiBlackboardVo []
  • result
  • └ gmt_create
  • Date
  • 1497249913000
  • 创建时间
  • └ title
  • String
  • 标题
  • 标题
  • └ url
  • String
  • https://app.dingtalk.com/blackboard/notice.html
  • 跳转URL

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
DingTalkClient client = new DefaultDingTalkClient("https://eco.taobao.com/router/rest");
SmartworkBlackboardListtoptenRequest req = new SmartworkBlackboardListtoptenRequest();
req.setUserid("manager01");
SmartworkBlackboardListtoptenResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<dingtalk_smartwork_blackboard_listtopten_response>
    <result>
        <ding_open_errcode>0</ding_open_errcode>
        <error_msg>成功</error_msg>
        <success>true</success>
        <blackboard_list>
            <oapi_blackboard_vo>
                <gmt_create>1497249913000</gmt_create>
                <title>标题</title>
                <url>https://app.dingtalk.com/blackboard/notice.html</url>
            </oapi_blackboard_vo>
        </blackboard_list>
    </result>
</dingtalk_smartwork_blackboard_listtopten_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部