创建比对任务(一对多)
测试中
POST
/openapi/compare/multi-task
请求参数
Header 参数
appid
string
开发者appid
默认值:
fgg12345678987654321
timestamp
integer
10位数字时间戳
默认值:
{{$date.timestamp}}
nonce
string
16位随机字符串
默认值:
AcGIU5JK9KjKk7vq
sign
string
必需
默认值:
{{sign}}
Body 参数application/json
originFileName
string
源文件名称
originFileUrl
string
源文件在线地址
targetFiles
array [object {2}]
必需
fileName
string
目标文件名称
fileUrl
string
目标文件地址
creator
string
创建人
callbackUrl
string
可选
ignorePunctuations
boolean
可选
ignorePageHeaderAndFooter
boolean
可选
ignoreComments
boolean
可选
acceptAllReverts
boolean
可选
ignoreSeals
boolean
可选
language
string
可选
示例
{
"originFileName": "string",
"originFileUrl": "string",
"targetFiles": [
{
"fileName": "string",
"fileUrl": "string",
"taskId": "string"
}
],
"creator": "string",
"callbackUrl": "string",
"ignorePunctuations": true,
"ignorePageHeaderAndFooter": true,
"ignoreComments": true,
"acceptAllReverts": true,
"ignoreSeals": true
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/openapi/compare/multi-task' \
--header 'appid;' \
--header 'timestamp;' \
--header 'nonce;' \
--header 'sign;' \
--header 'Content-Type: application/json' \
--data-raw '{
"originFileName": "string",
"originFileUrl": "string",
"targetFiles": [
{
"fileName": "string",
"fileUrl": "string",
"taskId": "string"
}
],
"creator": "string",
"callbackUrl": "string",
"ignorePunctuations": true,
"ignorePageHeaderAndFooter": true,
"ignoreComments": true,
"acceptAllReverts": true,
"ignoreSeals": true
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
可选
data
object
可选
tasks
array [object {3}]
必需
示例
{
"code": 0,
"msg": "string",
"data": {
"tasks": [
{
"code": "string",
"message": "string",
"taskId": "string"
}
]
}
}
修改于 2024-09-25 06:45:33