- Wefile (信天邮科技)
- 工作流(workflows)
- 任务(jobs)
- {job Id}
- result
- files
- output Documents/{output Document Id}/files
- 返回任务输出结果(Returns the result of a job.)
- 返回任务状态信息(Returns the state of a job.)
- 删除任务(Deletes a job.)
- result
- 返回多个任务的状态(Returns the states of multiple jobs.)GET
- 删除多个任务(Deletes multiple jobs.)DELETE
- 服务器(server)
- 许可(licenses)
- 队列(queue)
- 语言(languages)
- 统计分析(statistics)
- 工作站(stations)
- 返回部分服务器任务日志(Returns a portion of the server job log.)GET
- 返回服务器任务的统计信息(Returns the statistics of the server jobs.)GET
- 输出格式(output Formats)
通过配置单创建任务(Creates a new job from the specified ticket.)
POST
/api/workflows/{{workflowName}}/input/ticket
请求参数
Query 参数
serverLocation
string
必需
Header 参数
Content-Type
string
必需
示例值:
application/json
Accept
string
必需
示例值:
application/json
Body 参数application/json
Priority
string
必需
IsTemporary
boolean
必需
Name
string
必需
InputFiles
array [object {2}]
必需
FileData
object
可选
ExportParams
array [object {1}]
可选
示例
{
"Priority": "string",
"IsTemporary": true,
"Name": "string",
"InputFiles": [
{
"FileData": {
"FileContents": "string",
"FileName": "string",
"OpenPassword": "string",
"OwnerPassword": "string",
"LocationPath": "string"
},
"ExportParams": [
{
"FileFormat": "string"
}
]
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://frstrial.wefile.com/FineReaderServer14//api/workflows/{{workflowName}}/input/ticket?serverLocation=' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"Priority": "string",
"IsTemporary": true,
"Name": "string",
"InputFiles": [
{
"FileData": {
"FileContents": "string",
"FileName": "string",
"OpenPassword": "string",
"OwnerPassword": "string",
"LocationPath": "string"
},
"ExportParams": [
{
"FileFormat": "string"
}
]
}
]
}'
返回响应
🟢201The ID of the new job.
application/json
Body
No schema defined
示例
"Ut exercitation"
🟠400No input files supplied, or request format is invalid.
修改于 2024-04-24 10:32:20