文档中心 > API类目 > 瓴羊客服云

alibaba.lyservice.ding.account.info.query (瓴羊查询钉钉组织内成员信息)

查询钉钉组织内成员信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
open_corp_account_info_query_request OpenCorpAccountInfoQueryRequest 必须 入参
  • └ tenant_id
  • Number
  • 必须
  • 200491023
  • 租户id
  • └ corp_id
  • String
  • 必须
  • ding01dcd8e1b2abb887a1320dcb25e91351
  • 组织id
  • └ staff_ids
  • String []
  • 必须
  • ["234251"]
  • 员工ID集合

响应参数

名称 类型 示例值 描述
result ResultDO 出参
  • └ code
  • String
  • 200
  • code
  • data
  • DingAccountInfo []
  • true
  • 数据
  • └ account_type
  • String
  • INTERNAL
  • 成员类型
  • └ open_id
  • String
  • "234251"
  • staffID或unionId
  • └ name
  • String
  • "周杰伦"
  • 名称
  • └ success
  • Boolean
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaLyserviceDingAccountInfoQueryRequest req = new AlibabaLyserviceDingAccountInfoQueryRequest();
AlibabaLyserviceDingAccountInfoQueryRequest.OpenCorpAccountInfoQueryRequest obj1 = new AlibabaLyserviceDingAccountInfoQueryRequest.OpenCorpAccountInfoQueryRequest();
obj1.setTenantId(200491023L);
obj1.setCorpId("ding01dcd8e1b2abb887a1320dcb25e91351");
obj1.setStaffIds(""234251"");
req.setOpenCorpAccountInfoQueryRequest(obj1);
AlibabaLyserviceDingAccountInfoQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_lyservice_ding_account_info_query_response>
    <result>
        <code>200</code>
        <data>
            <ding_account_info>
                <account_type>INTERNAL</account_type>
                <open_id>&quot;234251&quot;</open_id>
                <name>&quot;周杰伦&quot;</name>
            </ding_account_info>
        </data>
        <success>true</success>
    </result>
</alibaba_lyservice_ding_account_info_query_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

返回
顶部