从邮递员访问Github私人仓库

时间:2020-01-10 06:01:31

标签: github

我正在尝试从邮递员访问我组织的GitHub私有仓库。

这就是我在做什么...

获取EndPoint
https://api.github.com/repos/_orgs/_repo

标题
内容类型:application / json

授权
OAUTH 2.0

我已经从我的github帐户生成了个人访问令牌,并将其作为令牌传递给OAuth。

回复
状态码:404
{ “未找到信息”, “ documentation_url”:“ https://developer.github.com/v3/repos/#get” }

任何建议/建议/想法都会有所帮助。

谢谢

已更新

我尝试了建议

enter image description here

这里的密码是我的github令牌。 确保没有传递任何标题。很好

1 个答案:

答案 0 :(得分:1)

我已经从我的github帐户生成了个人访问令牌,并将其作为令牌传递给了oAUTH。

这取决于您通过它的方式: :如图in this issue所示,它必须是base64 encoded(例如base64encode.org

postman

OP报告卷曲效果:

curl -i -u myusername:mypersonaltoken https://api.github.com/repos/_orgs/_privaterepo

从那里:

要将cURL命令导入Postman。

  • 单击导入选项卡。
  • 选择“原始文本”选项并粘贴您的cURL命令。
  • 单击导入,您的邮递员构建器中将具有该命令。