post 缺少逗号、post 文本中的双引号未转义,以及 platform 缺少结束引号。正确的 JSON 应为:
text/plain。
我们推荐使用 Postman 尝试此请求,它可以帮助你修正 JSON 格式。详情请见下一节。
校验 JSON
你可以使用在线校验工具,例如 https://jsonlint.com/,或者使用 Postman。 你也可以使用我们的/validate/json 端点:
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
了解 Ayrshare API 返回 Bad Request (400) 错误的原因、如何发现缺失或无效的参数,以及如何更正请求并重新发送。
{
"post": "A "great" post"
"platforms: ["twitter"]
}
post 缺少逗号、post 文本中的双引号未转义,以及 platform 缺少结束引号。正确的 JSON 应为:
{
"post": "A \"great\" post",
"platforms": ["twitter"]
}
text/plain。
我们推荐使用 Postman 尝试此请求,它可以帮助你修正 JSON 格式。详情请见下一节。
/validate/json 端点: