GitHub Gist API补丁不起作用?

Lit*_*ild 8 gist github github-api

我正在使用Postman创建匿名Gists.Gists已成功创建,但当我尝试修补它们时,我得到:

{
  "message": "Not Found",
  "documentation_url": "https://developer.github.com/v3/gists/#edit-a-gist"
}
Run Code Online (Sandbox Code Playgroud)

我使用的URL是:

https://api.github.com/gists/14694f43065a32ec28ad 
Run Code Online (Sandbox Code Playgroud)

如果我做GET,它工作正常.如果我执行PATCH,我会收到一条错误消息.

这有什么不对?

Ion*_*zău 4

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

\n\n

身份验证部分,它说:

\n\n
\n

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

\n
\n\n

如果您只是尝试向匿名要点提交一些内容,您将得到相同的404\xe2\x80\x93Not found错误。git push

\n\n
$ git push\nUsername for \'https://gist.github.com\': IonicaBizau\nPassword for \'https://IonicaBizau@gist.github.com\': \nremote: Repository not found.\nfatal: repository \'https://gist.github.com/anonymous/5801....d2f/\' not found\n
Run Code Online (Sandbox Code Playgroud)\n\n

他们甚至不在要点页面上为匿名要点提供编辑按钮。他们确实有删除功能与 IP 关联的

\n\n

否则,您必须联系支持人员来删除匿名要点。

\n