我写了python脚本来列出存储库和提交。 要创建一个新的储存库,我用下面的代码:GitHub,创建新的存储库(Github API令牌)
curl -F 'login=SolomonPeter26' -F 'token=mygithubapitoken' https://github.com/api/v2/json/repos/create -F 'name=REPONAME' -F 'description=This project is a test'
我无法访问其他用户的GitHub的API令牌。所以我无法为此编写一个python脚本。
请提出一个更好的方式来创建这样一个新的存储库或访问Github的API令牌的方式。(我能得到的OAuth或任何的oauth2帮助)