GitHub API: using 'repo' scope, but still can't see private repos

后端 未结 5 826
眼角桃花
眼角桃花 2020-12-15 05:32

Per the GitHub API docs, I am requesting the repo scope which gives access to private repositories.

The user is presented with the following dialog, which also ment

5条回答
  •  执笔经年
    2020-12-15 05:44

    To access private information, you need to include the access_token parameter in the URL . Example:

    /users/someusername/repos?access_token=512295a0afb73bdd1c076a00c69f8abcd12345

    Access tokens are generated per user. You can generate your personal access token here:

    https://github.com/settings/applications

    You also need to have permission on the private repository to be able to see information about it. You can also see information about the forks of the private repository that you have access to.

提交回复
热议问题