id: api-linkedin

info:
  name: LinkedIn API Test
  author: dwisiswant0
  severity: info
  reference:
    - https://docs.microsoft.com/en-us/linkedin/compliance/
  metadata:
    max-request: 1
  tags: token-spray,linkedin

self-contained: true

http:
  - method: GET
    path:
      - "https://api.linkedin.com/v2/me?oauth2_access_token={{token}}"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        part: body
        words:
          - '"id":'
          - '"firstName":'
          - '"localized":'
        condition: and
# digest: 4a0a00473045022000d5fd5208ea98ae218c681032434305722428b54c7f4f77ed81a60c9fb7917a0221009ea34f3f2dd96a9a678cf2a9f2e21107248c56e21c6aaf64253ed49167622c2a:922c64590222798bb761d5b6d8e72950