id: api-googlefindplacefromtext

info:
  name: Google Find Place From Text API Test
  author: zzeitlin
  severity: info
  metadata:
    max-request: 1
  tags: token-spray,google,find,text

self-contained: true

http:
  - method: GET
    path:
      - "https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=Museum%20of%20Contemporary%20Art%20Australia&inputtype=textquery&fields=photos,formatted_address,name,rating,opening_hours,geometry&key={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - 'error_message'
        negative: true
# digest: 4b0a00483046022100db0259f7a20fb8d468faf4b78a7a2e818c5a1bc803b879b47dd07df0fc19b9b7022100cad21d1edfd5319f76dd6f5658fb7da03f9d3fe9b256b6cb51e8bd181981acab:922c64590222798bb761d5b6d8e72950