如何通过 webhooks 提交带边框的 table?
How to submit through webhooks a table with borders?
我可以 post table 但是它没有边界..
curl -X POST "https://eu.yourcircuit.com/rest/v2/webhooks/incoming/randomID" -H "accept: application/json" -H "content-type: application/x-www-form-urlencoded" -d "{ \"text\": \"<table><tr><td>1<\/td><td>2<\/td><\/tr><tr><td>haha<\/td><td>hihi<\/td><\/tr><\/table>\" }"
table 应该有边框,但是参数 border="1"
我收到以下错误:
{"errorDescription":"the request contains invalid
data","validationErrors":["Cannot validate the request parameter with
name ::= [content]","The request parameter with name ::= [content] is
forbidden by ANTISAMY"],"errorCode":"400"}
那我该如何解决呢?我看到了一个打印屏幕表格 Unify 本身,其中 table 有边框..
电路中不支持表格。有关 Circuit 中支持的格式,请参阅 https://circuitsandbox.net/sdk/classes/Client.html#method_addTextItem。
话虽如此,HTML 验证器目前并未阻止简单表。
您的示例不起作用的原因是 html 无效。将此内容与正确的开始和结束标签一起使用。
curl -X POST "https://eu.yourcircuit.com/rest/v2/webhooks/incoming/randomID" -H "accept: application/json" -H "content-type: application/x-www-form-urlencoded" -d "{ \"text\": \"<table border="1"><tr><td>1</td></tr><tr><td>2</td></tr></table>\" }"
我可以 post table 但是它没有边界..
curl -X POST "https://eu.yourcircuit.com/rest/v2/webhooks/incoming/randomID" -H "accept: application/json" -H "content-type: application/x-www-form-urlencoded" -d "{ \"text\": \"<table><tr><td>1<\/td><td>2<\/td><\/tr><tr><td>haha<\/td><td>hihi<\/td><\/tr><\/table>\" }"
table 应该有边框,但是参数 border="1"
我收到以下错误:
{"errorDescription":"the request contains invalid data","validationErrors":["Cannot validate the request parameter with name ::= [content]","The request parameter with name ::= [content] is forbidden by ANTISAMY"],"errorCode":"400"}
那我该如何解决呢?我看到了一个打印屏幕表格 Unify 本身,其中 table 有边框..
电路中不支持表格。有关 Circuit 中支持的格式,请参阅 https://circuitsandbox.net/sdk/classes/Client.html#method_addTextItem。
话虽如此,HTML 验证器目前并未阻止简单表。
您的示例不起作用的原因是 html 无效。将此内容与正确的开始和结束标签一起使用。
curl -X POST "https://eu.yourcircuit.com/rest/v2/webhooks/incoming/randomID" -H "accept: application/json" -H "content-type: application/x-www-form-urlencoded" -d "{ \"text\": \"<table border="1"><tr><td>1</td></tr><tr><td>2</td></tr></table>\" }"