是否有使用PyGithub创建新的Gist的选项?
在GitHub上有这样的API option,但是在PyGithub中似乎没有。
发布于 2019-06-20 15:22:12
先使用Github.get_user,然后使用AuthenticatedUser.create_gist
gh = github.Github("auth token")
gh_auth_user = gh.get_user()
gist = gh_auth_user.create_gist(public=False, files={"myfile.txt": github.InputFileContent("my contents")}, description="my description")https://stackoverflow.com/questions/56344518
复制相似问题