Create api-delighted.yaml
parent
dae5155d07
commit
8eca51e18c
|
@ -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
|
Loading…
Reference in New Issue