Curl 无法使用GitHub api在回购协议上创建问题(创建问题)

Curl 无法使用GitHub api在回购协议上创建问题(创建问题),curl,github-api,Curl,Github Api,试图使用GitHubAPI在组织回购上创建问题 遵循中的语法。使用curl在MAC上运行此命令 它失败了,出现以下错误 命令: curl -u username:accesstoken -X POST -H “Accept: application/vnd.github.v3+json” -d ‘{“title”: "issue created using api", ”body”: ”content for new issue“}’ https://api.github.c

试图使用
GitHub
API在组织回购上创建
问题

遵循中的语法。使用
curl
在MAC上运行此命令

它失败了,出现以下错误

命令:

curl -u username:accesstoken -X POST -H “Accept: application/vnd.github.v3+json” -d ‘{“title”: "issue created using api", ”body”: ”content for new issue“}’ https://api.github.com/repos/{orgname}/demo-second/issues
输出:

curl: (6) Could not resolve host: application
curl: (6) Could not resolve host: ”content
curl: (6) Could not resolve host: for
curl: (6) Could not resolve host: new
curl: (3) unmatched close brace/bracket in URL position 9:
issue“}’
        ^
{
  "message": "Problems parsing JSON",
  "documentation_url": "https://docs.github.com/rest/reference/issues#create-an-issue"
}
无法解决JSON的问题