dingtalk.security.moderation.validate (钉钉安全送审)

钉钉安全送审

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
basic_request BizModerationCloudRequest 可选 request
  • request
  • BizModerationRequest
  • 可选
  • request
  • └ content_tag
  • String
  • 可选
  • tag
  • content_tag
  • └ biz_area
  • String
  • 可选
  • DING_TALK
  • biz_area
  • └ traffic_tags
  • String
  • 可选
  • null
  • traffic_tags
  • └ biz_position
  • String
  • 可选
  • null
  • biz_position
  • └ biz_scene_code
  • String
  • 可选
  • sceneCode
  • biz_scene_code
  • └ package_version
  • String
  • 可选
  • 1.0.0
  • package_version
  • └ user_identity
  • String
  • 可选
  • uid
  • user_identity
  • └ biz_product_code
  • String
  • 可选
  • productCode
  • biz_product_code
  • └ system_produced
  • Boolean
  • 可选
  • false
  • system_produced
  • └ content_value
  • String
  • 可选
  • {"contents":[{"tag":"corpAbbr","target":"721bccf0-ee01-4c11-8d5e-0d30d4397f72","type":"MULTIPART_TEXT","value":"{\"dummyId\":\"721bccf0-ee01-4c11-8d5e-0d30d4397f72\",\"textParts\":{\"$\":\"公司简称测试\"}}"}]}
  • content_value
  • └ biz_affected
  • String
  • 可选
  • null
  • biz_affected
  • └ protocol_version
  • String
  • 可选
  • 1.0.0
  • protocol_version
  • └ region
  • String
  • 可选
  • CHINA
  • region
  • └ organization_identity
  • String
  • 可选
  • orgId
  • organization_identity
  • └ content_type
  • String
  • 可选
  • MULTI_MIXED
  • content_type
  • └ check_id
  • String
  • 可选
  • null
  • check_id
  • └ biz_entity
  • String
  • 可选
  • {}
  • biz_entity
  • └ snapshot
  • Boolean
  • 可选
  • false
  • snapshot

响应参数

名称 类型 示例值 描述
payload String xxx payload
biz_success Boolean true success
biz_error_message String null error_message
biz_error_code Number 0 error_code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
DingtalkSecurityModerationValidateRequest req = new DingtalkSecurityModerationValidateRequest();
DingtalkSecurityModerationValidateRequest.BizModerationCloudRequest obj1 = new DingtalkSecurityModerationValidateRequest.BizModerationCloudRequest();
DingtalkSecurityModerationValidateRequest.BizModerationRequest obj2 = new DingtalkSecurityModerationValidateRequest.BizModerationRequest();
obj2.setContentTag("tag");
obj2.setBizArea("DING_TALK");
obj2.setTrafficTags("null");
obj2.setBizPosition("null");
obj2.setBizSceneCode("sceneCode");
obj2.setPackageVersion("1.0.0");
obj2.setUserIdentity("uid");
obj2.setBizProductCode("productCode");
obj2.setSystemProduced(false);
obj2.setContentValue("{\"contents\":[{\"tag\":\"corpAbbr\",\"target\":\"721bccf0-ee01-4c11-8d5e-0d30d4397f72\",\"type\":\"MULTIPART_TEXT\",\"value\":\"{\\"dummyId\\":\\"721bccf0-ee01-4c11-8d5e-0d30d4397f72\\",\\"textParts\\":{\\"$\\":\\"公司简称测试\\"}}\"}]}");
obj2.setBizAffected("null");
obj2.setProtocolVersion("1.0.0");
obj2.setRegion("CHINA");
obj2.setOrganizationIdentity("orgId");
obj2.setContentType("MULTI_MIXED");
obj2.setCheckId("null");
obj2.setBizEntity("{}");
obj2.setSnapshot(false);
obj1.setRequest(obj2);
req.setBasicRequest(obj1);
DingtalkSecurityModerationValidateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<dingtalk_security_moderation_validate_response>
    <payload>xxx</payload>
    <biz_success>true</biz_success>
    <biz_error_message>null</biz_error_message>
    <biz_error_code>0</biz_error_code>
</dingtalk_security_moderation_validate_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

返回
顶部