大约一个小时以来,我一直在尝试将发布请求发送到不和谐的 Webhook,但似乎不知道该怎么做。
我想发送这个:
{
"content": null,
"embeds": [
{
"title": "Test!",
"description": "nooo",
"color": 16777215,
"author": {
"name": "Automated Tool Logging",
"icon_url": "https://discohook.org/static/discord-avatar.png"
}
}
],
"attachments": []
}
到目前为止,我已经知道我必须使用这样的卷曲请求
curl -i -H "Accept: application/json" -H "Content-Type:application/json" -X POST --data '{"content": null,"embeds": [{"title": "test","description": "temp\ntemp2","color": 16777215,"author": {"name": "Automated Tool Logging","icon_url": "https://discohook.org/static/discord-avatar.png"}}],"attachments": []}' -webhook link-
但是当我尝试它时,我得到了
curl: (3) URL using bad/illegal format or missing URL
curl: (3) bad range specification in URL position 2:
[{title:
^
而且我找不到任何在 curl 请求中使用嵌入的示例。关于如何使其工作的任何想法?