id: api-youtube

info:
  name: YouTube API Test
  author: zzeitlin
  severity: info
  reference:
    - https://developers.google.com/youtube/v3/docs
  metadata:
    max-request: 1
  tags: token-spray,youtube

self-contained: true

http:
  - method: GET
    path:
      - "https://www.googleapis.com/youtube/v3/activities?part=contentDetails&maxResults=25&channelId=UC-lHJZR3Gqxm24_Vd_AJ5Yw&key={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - '"kind":'
          - '"pageInfo":'
        condition: and
# digest: 4a0a00473045022100c354e171c0b89d9d31d837572d6e3a1f8e4a9a0dd8c07d584c8d9b3f4f7fcc670220423a74d9b22b529bbb7a413894fe9c23fc442275a168b7f83739e6707371fd3c:922c64590222798bb761d5b6d8e72950