POST /webpage/auditing HTTP/1.1Host: <BucketName-APPID>.ci.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>Content-Length: <length>Content-Type: application/xml<body>
<Request><Input><Url></Url><DataId></DataId><UserInfo></UserInfo></Input><Conf><Biztype></Biztype><Callback></Callback><ReturnHighlightHtml>true</ReturnHighlightHtml></Conf></Request>
Node Name (Keyword) | Parent Node | Description | Type | Required |
Request | None | Webpage moderation configuration. | Container | Yes |
Request
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type | Required |
Input | Request | Webpage to be moderated. | Container | Yes |
Conf | Request | Moderation rule configuration. | Container | Yes |
Input
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type | Required |
Url | Request.Input | Full URL of the webpage, such as http://www.test.com . | String | Yes |
DataId | Request.Input | This field will return the original content in the moderation result, which can contain up to 512 bytes. You can use this field to uniquely identify the data to be moderated in your business. | String | No |
UserInfo | Request.Input | Business field. | Container | No |
UserInfo
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type | Required |
TokenId | Request.Input.UserInfo | Account information, which can contain up to 128 bytes. | String | No |
Nickname | Request.Input.UserInfo | Nickname information, which can contain up to 128 bytes. | String | No |
DeviceId | Request.Input.UserInfo | Device information, which can contain up to 128 bytes. | String | No |
AppId | Request.Input.UserInfo | Unique app ID, which can contain up to 128 bytes. | String | No |
Room | Request.Input.UserInfo | Room ID information, which can contain up to 128 bytes. | String | No |
IP | Request.Input.UserInfo | IP address information, which can contain up to 128 bytes. | String | No |
Type | Request.Input.UserInfo | Business type, which can contain up to 128 bytes. | String | No |
ReceiveTokenId | Request.Input.UserInfo | User account to receive messages, which can contain up to 128 bytes. | String | No |
Gender | Request.Input.UserInfo | Gender information, which can contain up to 128 bytes. | String | No |
Level | Request.Input.UserInfo | Level information, which can contain up to 128 bytes. | String | No |
Role | Request.Input.UserInfo | Role information, which can contain up to 128 bytes. | String | No |
Conf
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type | Required |
BizType | Request.Conf | Unique identifier of the moderation policy. You can configure the scenes you want to moderate on the moderation policy page in the console, such as pornographic, advertising, and illegal information. You can get BizType in the console. If BizType is specified, the moderation request will perform moderation based on the scenes configured in the moderation policy. If BizType is not specified, the default moderation policy will be used automatically. | String | No |
DetectType | Request.Conf | The scene to be moderated, such as Porn (pornography) and Ads (advertising). This parameter will no longer be maintained in the future, and you should use BizType . You can pass in multiple types and separate them by comma, such as Porn,Ads . If you need to moderate more scenes, use the BizType parameter. | String | No |
Callback | Request.Conf | Callback address, which must start with http:// or https:// . | String | No |
ReturnHighlightHtml | Request.Conf | This parameter specifies whether to highlight the non-compliant text on the webpage. When the result is queried or called back, this parameter decides whether to return the highlighted HTML content. Valid values: true , false . Default value: false . | Boolean | No |
<Response><JobsDetail><JobId></JobId><State></State><CreationTime></CreationTime></JobsDetail></Response>
Node Name (Keyword) | Parent Node | Description | Type |
Response | None | The specific response content returned by webpage moderation. | Container |
Response
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type |
JobsDetail | Response | Details of the webpage moderation job. | Container |
JobsDetail
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type |
DataId | Response.JobsDetail | DataId field added in the request. | String |
JobId | Response.JobsDetail | ID of the webpage moderation job. | String |
State | Response.JobsDetail | Status of the webpage moderation job. Valid values: Submitted , Success , Failed , Auditing . | String |
CreationTime | Response.JobsDetail | Creation time of the webpage moderation job. | String |
POST /webpage/auditing HTTP/1.1Authorization: q-sign-algorithm=sha1&q-ak=AKIDZfbOAo7cllgPvF9cXFrJD0a1ICvR****&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=28e9a4986df11bed0255e97ff90500557e0e****Host: examplebucket-1250000000.ci.ap-beijing.myqcloud.comContent-Length: 166Content-Type: application/xml<Request><Input><Url>http://test.com</Url></Input><Conf><ReturnHighlightHtml>true</ReturnHighlightHtml><DetectType>Porn,Ads</DetectType></Conf></Request>
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 230Connection: keep-aliveDate: Thu, 15 Jun 2017 12:37:29 GMTServer: tencent-cix-ci-request-id: NTk0MjdmODlfMjQ4OGY3XzYzYzhf****<Response><JobsDetail><CreationTime>2021-11-09T09:55:53+08:00</CreationTime><JobId>sh2c1260a4410011eca1f1525400276c76</JobId><State>Submitted</State><Url>http://test.com</Url></JobsDetail><RequestId>NjE4OWQ1Mjlf*****MzQ0OF85</RequestId></Response>
Was this page helpful?