Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 483 Bytes

user-access-token-example-request.md

File metadata and controls

9 lines (8 loc) · 483 Bytes
  1. Use the user access token from the previous step to make API requests on behalf of the user. Include the user access token in the Authorization header of an API request. For example:

    curl --request GET \
    --url "{% data variables.product.rest_url %}/user" \
    --header "Accept: application/vnd.github+json" \
    --header "Authorization: Bearer USER_ACCESS_TOKEN" \
    --header "X-GitHub-Api-Version: {{ allVersions[currentVersion].latestApiVersion }}"