【问题标题】:What does “If OAuth is used, the delete_repo scope is required.“ mean in GitHub API?“如果使用 OAuth,则需要 delete_repo 范围。”在 GitHub API 中是什么意思?
【发布时间】:2015-06-11 02:08:55
【问题描述】:

我想用GitHub api删除一个repo,我也试过Octokit,但是完全不行,文档里有一句话看不懂,“如果使用OAuth,需要delete_repo范围。 “,我在这里无法理解,请帮助我,谢谢!

https://developer.github.com/v3/repos/#delete-a-repository

删除存储库

删除存储库需要管理员权限。如果使用 OAuth,则 delete_repo 范围是必需的。

删除 /repos/:owner/:repo 回应

状态:204 无内容 X-RateLimit-Limit:5000 X-RateLimit-Remaining: 4999

【问题讨论】:

    标签: git api github octokit


    【解决方案1】:

    我认为这是这里的选项: https://github.com/settings/applications

    访问令牌的权限

    抱歉浪费资源在这里问这个问题...

    【讨论】:

      猜你喜欢
      • 2018-12-20
      • 1970-01-01
      • 1970-01-01
      • 2019-04-08
      • 1970-01-01
      • 2021-08-23
      • 2017-02-09
      • 2013-02-21
      • 1970-01-01
      相关资源
      最近更新 更多