我需要有关Github API的帮助,
我需要通过api提交文件的新版本,我正在尝试通过将发布请求发送到]来实现此目的>
https://api.github.com/repos/:username/:repo:/git/commits/
有数据
{ "login": "username", "token": "auth_token", "parent_commit": "sha", "message": "commit message.", "content": { "path": "full/path", "mode": "edit", "data": "new content" } }
但是它失败并显示结果-找不到。
有人知道发送此请求的位置以及此格式是否正确吗?
(格式由-http://swanson.github.com/blog/2011/07/23/digging-around-the-github-api-take-2.html启发)
谢谢!
我需要有关Github API的帮助,我需要通过api提交新版本的文件,我正在尝试通过向https://api.github.com/repos/:username/:repo:/发送发帖请求来实现这一目标git / commits / with ...