id: api-abstract-timezone

info:
  name: Abstract Api Timezone Test
  author: daffainfo
  severity: info
  description: Quickly and easily get the time and date of a location or IP address, or convert the time and date of one timezone into another
  reference:
    - https://www.abstractapi.com/api/time-date-timezone-api
    - https://github.com/daffainfo/all-about-apikey/tree/main/abstract-timezone
  metadata:
    max-request: 1
  tags: token-spray,abstractapi

self-contained: true

http:
  - method: GET
    path:
      - "https://timezone.abstractapi.com/v1/current_time/?api_key={{token}}&location=Oxford,%20United%20Kingdom"

    matchers:
      - type: word
        part: body
        words:
          - '"requested_location":'
          - '"longitude":'
          - '"latitude":'
        condition: and
# digest: 4a0a004730450220354fe6bec4641a043daaa51e3c6160bb068dc1dfd99895559f2614504ef7bec3022100df35a96c4a7c904ff1071d41d297f299d7277724f81a14613199e9ca8bdc4444:922c64590222798bb761d5b6d8e72950