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: 490a0046304402203c9109c00c923e7b0aac582048286e2edd2b6473f6d61f0a480eeb5a6f197a6302206302a066b3bb40f6041e8881f4c1fa6c38b3b77b5218692e5a2fa9922a801af1:922c64590222798bb761d5b6d8e72950