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

alibaba.lyservice.group.group.communication (客服一键拉群)

客服一键拉群

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
service_communication_request ServiceCommunicationRequest 可选 请求
  • └ case_id
  • String
  • 可选
  • 123
  • 工单id
  • └ tenant_id
  • Number
  • 可选
  • 200110004
  • 租户id
  • └ staff_id
  • String
  • 可选
  • 123
  • staffId
  • └ outer_type
  • String
  • 可选
  • 111
  • outType

响应参数

名称 类型 示例值 描述
result ResultDO 结果
  • └ msg
  • String
  • 123
  • 返回信息
  • └ code
  • String
  • 200
  • 结果码
  • data
  • CommunicationResponse
  • 数据
  • └ group_link
  • String
  • dingtalk://dingtalkclient/page/link?url=https%3A%2F%2Fpre-h5.dingtalk.com%2Fcustomer-service%2Findex.html%3FappType%3DservicerCreate%26corpId%3Dding79313cbeda1b6172a39a90f97fcb1e09%26ddtab%3Dtrue%26dingGroupName%3D%E8%B4%BA%E6%99%AF%E6%B5%8B%E8%AF%95%E9%85%B7%E5%BA%94%E7%94%A8%26isTicketServicer%3Dtrue%26isgroupCreated%3Dtrue%26openConversationId%3DcidxVCsb6h4If5WSyOrVnHhYQ%3D%3D%26outerType%3Dlydds%26tenantId%3D200110002%26userIdentify%3D3j7iPMNl89PiP3CNyAKXFcdgiEiE%23%2FmobileOperator%2FticketCreate%3Fddtab%3Dtrue
  • 群链接
  • └ group_qr_code
  • String
  • https://ly-ding-solution-new.oss-cn-shanghai.aliyuncs.com/2023-06-28/38c36f3e-8dd7-43a4-9ca1-9613d8e047ac.json
  • 群二维码
  • └ account_type
  • Number
  • 1
  • 成员类型 1 内部成员 2 外部成员
  • └ team_group_id
  • String
  • 123
  • 群chatid
  • └ success
  • Boolean
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaLyserviceGroupGroupCommunicationRequest req = new AlibabaLyserviceGroupGroupCommunicationRequest();
AlibabaLyserviceGroupGroupCommunicationRequest.ServiceCommunicationRequest obj1 = new AlibabaLyserviceGroupGroupCommunicationRequest.ServiceCommunicationRequest();
obj1.setCaseId("123");
obj1.setTenantId(200110004L);
obj1.setStaffId("123");
obj1.setOuterType("111");
req.setServiceCommunicationRequest(obj1);
AlibabaLyserviceGroupGroupCommunicationResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_lyservice_group_group_communication_response>
    <result>
        <msg>123</msg>
        <code>200</code>
        <data>
            <group_link>dingtalk://dingtalkclient/page/link?url=https%3A%2F%2Fpre-h5.dingtalk.com%2Fcustomer-service%2Findex.html%3FappType%3DservicerCreate%26corpId%3Dding79313cbeda1b6172a39a90f97fcb1e09%26ddtab%3Dtrue%26dingGroupName%3D%E8%B4%BA%E6%99%AF%E6%B5%8B%E8%AF%95%E9%85%B7%E5%BA%94%E7%94%A8%26isTicketServicer%3Dtrue%26isgroupCreated%3Dtrue%26openConversationId%3DcidxVCsb6h4If5WSyOrVnHhYQ%3D%3D%26outerType%3Dlydds%26tenantId%3D200110002%26userIdentify%3D3j7iPMNl89PiP3CNyAKXFcdgiEiE%23%2FmobileOperator%2FticketCreate%3Fddtab%3Dtrue</group_link>
            <group_qr_code>https://ly-ding-solution-new.oss-cn-shanghai.aliyuncs.com/2023-06-28/38c36f3e-8dd7-43a4-9ca1-9613d8e047ac.json</group_qr_code>
            <account_type>1</account_type>
            <team_group_id>123</team_group_id>
        </data>
        <success>true</success>
    </result>
</alibaba_lyservice_group_group_communication_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

返回
顶部