id: api-instagramgraph

info:
  name: Instagram Graph API Test
  author: zzeitlin
  severity: info
  reference:
    - https://developers.facebook.com/docs/instagram-api/getting-started
  metadata:
    max-request: 1
  tags: token-spray,instagram,graph,facebook

self-contained: true

http:
  - method: GET
    path:
      - "https://graph.facebook.com/v12.0/me/accounts?access_token={{token}}"

    matchers:
      - type: word
        part: body
        words:
          - '"data":'
          - '"access_token":'
          - '"name":'
        condition: and
# digest: 490a0046304402203ade6d8603824d6cee1aba09cec32aa8fdb19ff6847894922c028078f4d19c5702204b02d9e4c9bb446c965ef0dbbae2e9dc8ea6d22df0c12c3eee97bbd9a970683f:922c64590222798bb761d5b6d8e72950