From 0c444f382f0b4d26746e62d9a36db08626bf3098 Mon Sep 17 00:00:00 2001 From: Muhammad Daffa <36522826+daffainfo@users.noreply.github.com> Date: Thu, 16 Jun 2022 16:00:12 +0700 Subject: [PATCH] Create api-amdoren.yaml --- token-spray/api-amdoren.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 token-spray/api-amdoren.yaml diff --git a/token-spray/api-amdoren.yaml b/token-spray/api-amdoren.yaml new file mode 100644 index 0000000000..340716effe --- /dev/null +++ b/token-spray/api-amdoren.yaml @@ -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