【发布时间】:2021-04-27 09:14:36
【问题描述】:
真的很简单,用 github api 发出请求:https://docs.github.com/en/rest/reference/checks#list-check-runs-for-a-git-reference
我正在尝试查找我拥有的特定分支的检查运行。以下是我获取的网址:
url = ...api/v3/repos/{repo_fullname}/commits/{branch}/check-runs'
这是我的标题:
headers = {
'Authorization': 'token ' + token,
"Accept": "application/vnd.github.v3+json"
}
我遇到了:415 Client Error: Unsupported Media Type for url...
请帮忙,我已经敲了几个小时的头了。谢谢!
【问题讨论】:
标签: http-headers github-api http-status-code-415