GIT GIST缺少现场用户



我无法使用其API上传GIST。

我总是得到相同的错误

{ "消息":"验证失败", "错误":[ { "资源":"要点", "代码":"丢失_field", "字段":"用户" } ],, " documentation_url":" https://developer.github.com/v3/gists/#create-a-gist" }

这是我的代码:

{
  "description": "the description for this gist",
  "public": true,
  "user": null,
  "files": {
    "file1.txt": {
      "content": "$formattedConfigText"
    },
    "file2.txt": {
      "content": "$formattedGoogleServices"
    }
  }
}
curlResponse=$(curl -H "Content-Type: application/json" -X POST -d "$(generate_post_data)" https://api.github.com/gists)

它曾经起作用,但已经停产了几天。感谢您的帮助

从3月19日起出版匿名GIST的弃用,请从Github博客中查看折旧通知:

https://blog.github.com/2018-02-18-deprecation-notice-removing--ramoving--ronymous-gist-creation/

最新更新