GitHub Gist API修补程序不';不行?

GitHub Gist API修补程序不';不行?,github,github-api,gist,Github,Github Api,Gist,我使用邮递员创建匿名注册。GIST创建成功,但当我尝试修补它们时,我得到: { "message": "Not Found", "documentation_url": "https://developer.github.com/v3/gists/#edit-a-gist" } 我使用的URL是: https://api.github.com/gists/14694f43065a32ec28ad 如果我做一个GET,它工作得很好。如果我做了一个补丁,我会收到一条错误消息 这里出了什

我使用邮递员创建匿名注册。GIST创建成功,但当我尝试修补它们时,我得到:

{
  "message": "Not Found",
  "documentation_url": "https://developer.github.com/v3/gists/#edit-a-gist"
}
我使用的URL是:

https://api.github.com/gists/14694f43065a32ec28ad 
如果我做一个GET,它工作得很好。如果我做了一个补丁,我会收到一条错误消息


这里出了什么问题?

您可以阅读和创建匿名GIST,但不能编辑它们。如果要创建、读取、更新和删除,请使用身份验证

在这一节中,它说:

您可以读取公共GIST并为匿名用户创建它们,而无需令牌;但是,要代表用户读取或写入gist,需要gist

如果您只是尝试
git将一些提交推送到匿名gist中,您将得到相同的404–Not found错误

$ git push
Username for 'https://gist.github.com': IonicaBizau
Password for 'https://IonicaBizau@gist.github.com': 
remote: Repository not found.
fatal: repository 'https://gist.github.com/anonymous/5801....d2f/' not found
他们甚至没有在要点页面上为匿名注册者提供编辑按钮。他们确实有一个与IP相关联的删除按钮(任何拥有匿名Gist链接的用户,连接在同一网络上,假设他们获得相同的公共IP,都可以删除匿名Gist)


否则,您必须使用匿名gist。

很遗憾,虽然允许在浏览器中删除匿名gist(它不是基于会话的,而是基于IP的),但您不允许通过API删除它们,即使是从同一IP中删除
$ git push
Username for 'https://gist.github.com': IonicaBizau
Password for 'https://IonicaBizau@gist.github.com': 
remote: Repository not found.
fatal: repository 'https://gist.github.com/anonymous/5801....d2f/' not found