2022-06-18 04:09:32 +00:00
|
|
|
id: api-api2convert
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Api2Convert API Test
|
|
|
|
author: daffainfo
|
|
|
|
severity: info
|
2022-07-25 06:05:11 +00:00
|
|
|
description: Online File Conversion API
|
2022-06-18 04:09:32 +00:00
|
|
|
reference:
|
|
|
|
- https://www.api2convert.com/docs/index.html
|
2022-07-25 06:05:11 +00:00
|
|
|
- https://github.com/daffainfo/all-about-apikey/tree/main/api2convert
|
2022-06-18 04:09:32 +00:00
|
|
|
tags: token-spray,api2convert
|
|
|
|
|
|
|
|
self-contained: true
|
|
|
|
requests:
|
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST https://api.api2convert.com/v2/jobs HTTP/1.1
|
|
|
|
Host: api.api2convert.com
|
|
|
|
X-Oc-Api-Key: {{token}}
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
{
|
|
|
|
"input": [{
|
|
|
|
"type": "remote",
|
|
|
|
"source": "https://example-files.online-convert.com/raster%20image/jpg/example_small.jpg"
|
|
|
|
}],
|
|
|
|
"conversion": [{
|
|
|
|
"target": "png"
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- '"id"'
|
|
|
|
- '"token"'
|
|
|
|
- '"type"'
|
|
|
|
condition: and
|