2022-07-22 11:32:46 +00:00
|
|
|
id: api-pdflayer
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: pdflayer API Test
|
|
|
|
author: daffainfo
|
|
|
|
severity: info
|
2022-07-25 06:05:11 +00:00
|
|
|
description: HTML/URL to PDF
|
2022-07-22 11:32:46 +00:00
|
|
|
reference:
|
|
|
|
- https://pdflayer.com/documentation
|
2022-07-25 06:05:11 +00:00
|
|
|
- https://github.com/daffainfo/all-about-apikey/tree/main/pdflayer
|
2022-07-22 11:32:46 +00:00
|
|
|
tags: token-spray,pdflayer
|
|
|
|
|
|
|
|
self-contained: true
|
|
|
|
requests:
|
2022-07-24 07:23:14 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
GET https://api.pdflayer.com/api/convert?access_key={{token}}&document_url=https://test.test HTTP/1.1
|
|
|
|
Host: api.pdflayer.com
|
2022-07-22 11:32:46 +00:00
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- '"document_url_not_found"'
|
|
|
|
- '"The document URL you specified was not found.'
|
|
|
|
condition: and
|