Merge pull request #4604 from daffainfo/patch-2

Create api-amdoren.yaml
patch-1
Prince Chaddha 2022-06-16 21:15:09 +05:30 committed by GitHub
commit d53b56a177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
id: api-amdoren
info:
name: Amdoren API Test
author: daffainfo
severity: info
reference:
- https://www.amdoren.com/currency-api/
- https://github.com/daffainfo/all-about-apikey/blob/main/Currency%20Exchange/Amdoren.md
tags: token-spray,amdoren
self-contained: true
requests:
- method: GET
path:
- "https://www.amdoren.com/api/currency.php?api_key={{token}}&from=USD&to=EUR"
matchers:
- type: word
part: body
words:
- '"error" : 0'
- '"error_message" : "-"'
condition: and