相关疑难解决方法(0)

Github API 创建提交

我需要 Github API 方面的帮助,

我需要通过 api 提交新版本的文件,我试图通过向

https://api.github.com/repos/:username/:repo:/git/commits/
Run Code Online (Sandbox Code Playgroud)

有数据

{
    "login": "username",
    "token": "auth_token",
    "parent_commit": "sha",
    "message": "commit message.",
    "content": {
        "path": "full/path",
        "mode": "edit",
        "data": "new content"
    }
}
Run Code Online (Sandbox Code Playgroud)

但结果失败 - 未找到。

有没有人知道在哪里发送这个请求以及这种格式是否正确?

(格式的灵感来自 - http://swanson.github.com/blog/2011/07/23/digging-around-the-github-api-take-2.html

谢谢!

api json http commit github

5
推荐指数
3
解决办法
3730
查看次数

标签 统计

api ×1

commit ×1

github ×1

http ×1

json ×1