39 lines
967 B
YAML
39 lines
967 B
YAML
id: api-delighted
|
|
|
|
info:
|
|
name: Delighted API Test
|
|
author: 0xpugal
|
|
severity: info
|
|
description: Collect customer feedback in minutes
|
|
reference:
|
|
- https://app.delighted.com/docs/api
|
|
metadata:
|
|
max-request: 1
|
|
tags: token-spray,delighted
|
|
|
|
self-contained: true
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "https://api.delighted.com/v1/metrics.json"
|
|
|
|
headers:
|
|
Content-Type: application/json
|
|
Authorization: Basic {{base64(token)}}
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- '"nps"'
|
|
- '"promoter_count"'
|
|
- '"promoter_percent"'
|
|
- '"passive_count"'
|
|
- '"response_count"'
|
|
condition: and
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
# digest: 4a0a00473045022100dc9d2793bb3ee846b16a3f6732428c10b6ba2b1a0411c6db797b680931c8c61a02202b889e522fd40905d53f6c5dbafcfe0bcd36e42779864a06f30192e40b8000ed:922c64590222798bb761d5b6d8e72950 |