Create api-delighted.yaml

patch-12
Pugalarasan 2024-10-06 11:49:28 +05:30 committed by GitHub
parent dae5155d07
commit 8eca51e18c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,41 @@
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:
- type: word
part: body
words:
- '"nps"'
- '"promoter_count"'
- '"promoter_percent"'
- '"passive_count"'
- '"passive_percent"'
- '"detractor_count"'
- '"detractor_percent"'
- '"response_count"'
condition: and
- type: status
status:
- 200