gpt4 book ai didi

github - Git 要点缺少字段用户

转载 作者:行者123 更新时间:2023-12-03 13:29:46 25 4
gpt4 key购买 nike

我无法使用他们的 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 日起,不推荐发布匿名 gists,请查看 GitHub 博客中的弃用通知:

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

关于github - Git 要点缺少字段用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49531422/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com