Git 要点缺少字段用户
Git gist missing field User
我无法使用他们的 api 将要点上传到 github。
我总是得到同样的错误
{
"message": "Validation Failed",
"errors": [
{
"resource": "Gist",
"code": "missing_field",
"field": "user"
}
],
"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 日起,发布匿名要点已被弃用,请查看 GitHub 博客中的弃用通知:
https://blog.github.com/2018-02-18-deprecation-notice-removing-anonymous-gist-creation/
我无法使用他们的 api 将要点上传到 github。
我总是得到同样的错误
{ "message": "Validation Failed", "errors": [ { "resource": "Gist", "code": "missing_field", "field": "user" } ], "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 日起,发布匿名要点已被弃用,请查看 GitHub 博客中的弃用通知:
https://blog.github.com/2018-02-18-deprecation-notice-removing-anonymous-gist-creation/