29 lines
512 B
YAML
29 lines
512 B
YAML
id: api-tinypng
|
|
|
|
info:
|
|
name: TinyPNG API Test
|
|
author: zzeitlin
|
|
severity: info
|
|
reference:
|
|
- https://tinypng.com/developers
|
|
metadata:
|
|
max-request: 1
|
|
tags: token-spray,tinypng
|
|
|
|
self-contained: true
|
|
|
|
http:
|
|
- method: POST
|
|
path:
|
|
- "https://api.tinify.com/shrink"
|
|
|
|
headers:
|
|
Authorization: Basic {{base64('api:' + token)}}
|
|
matchers:
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- 'Compression-Count'
|
|
- 'compression-count'
|
|
condition: or
|