I am trying to access the issues
assigned to a user (me, in this case) using GitHub's Rest API: GitHub Issues API
I am just using Postman.
What I have done:
URL: https://api.github.com/issues
Method: GET
Headers: Accept: application/vnd.github.v3+json
& Authorization: token {my_token}
The above returns:
{
"message": "Not Found",
"documentation_url": "https://docs.github.com/rest/reference/issues#list-issues-assigned-to-the-authenticated-user"
}
I know the token works because the API works fine if I try to fetch the user information using /user
or list a repository's issues using /repos/{owner}/{repo}/issues
. I created a few issues in a repo so I know it's not empty.
What am I doing wrong here?