27 lines
782 B
YAML
27 lines
782 B
YAML
|
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
|
||
|
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
|