post 後遺漏逗號、貼文文字中有一組未跳脫的 ” 引號,以及 platform 缺少結尾引號。正確的 JSON 應為:
text/plain。
我們建議在 Postman 中嘗試呼叫,它能協助修正 JSON 格式。更多資訊請見下一節。
驗證 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 後遺漏逗號、貼文文字中有一組未跳脫的 ” 引號,以及 platform 缺少結尾引號。正確的 JSON 應為:
{
"post": "A \"great\" post",
"platforms": ["twitter"]
}
text/plain。
我們建議在 Postman 中嘗試呼叫,它能協助修正 JSON 格式。更多資訊請見下一節。
/validate/json 端點: