如何使用Python和GitHub API来获取特定团队(或存储库)的用户详细信息(用户名、电子邮件、位置)?这些团队不是公开的,但我是我要检查的团队的一员(为老板准备一份报告)。
到目前为止,我已经尝试过使用像github3py这样的库,但没有任何结果。
import github3
g = github3.login(GH_USERNAME, GH_PASSWORD)
members = g.orgs.team(GH_TEAM)
for u in members
print u.login
print u.name
print u.email
我正在用node.js开发一个api,但是我在用邮递员发送请求时遇到了一个路由器的问题。
以下是我的路由器:
//@route GET api/profile/github/:username
//@desc Get user repos from github
//@access public
router.get('/github/:username', (req,res)=>{
try {
const options = {
uri: `https:
我试图使用Github进行授权请求,传递用户名和密码。但是它不起作用了,我得到了401状态代码。
在里有句话说
To use Basic Authentication with the GitHub API, simply send the username and password associated with the account.
这是我的密码:
this.api
.post('/user', { username: 'Example', password: '1234' })
.then(res =&g