1
0
mirror of synced 2025-12-26 14:02:45 -05:00
Files
docs/data/reusables/apps/user-access-token-example-request.md
2023-06-21 16:03:41 +00:00

10 lines
532 B
Markdown

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:
```shell
curl --request GET \
--url "{% data variables.product.api_url_pre %}/user" \
--header "Accept: application/vnd.github+json" \
--header "Authorization: Bearer USER_ACCESS_TOKEN"{% ifversion api-date-versioning %} \
--header "X-GitHub-Api-Version: {{ allVersions[currentVersion].latestApiVersion }}"{% endif %}
```