聯(lián)系官方銷售客服
1835022288
028-61286886
通過API發(fā)布文章,自定義字段如何提交?
post_url = f"https://aaa.com/index.php?appid=1&appsecret=PHPCMFD9C715F50B1A6&api_auth_code={login_code}&api_auth_uid=1&s=member&app=news&c=home&m=add";
data = "is_ajax=1&catid=2&data[title]=測試API發(fā)布YYY&data[content]=正文正文正文正文正文正文正文正文正&data[source_url]=https://news.baidu.com/"
source_url 為自定義字段,請問data[source_url]=https://news.baidu.com/格式是否正確。
我以此格式提交數(shù)據(jù),網(wǎng)站后臺沒有接收到source_url的值。
觀看操作視頻:API插件任意頁面的數(shù)據(jù)提交接口
必須看下這個視頻,需要先在用戶中心抓取下表單提交項
我感覺不太可能是我的問題,我已經(jīng)全部照做了。
表單提交的時候,source_url部分就是顯示的
data[source_url]:sina
我提交的時候數(shù)據(jù)格式為:data = "is_ajax=1&catid=2&data[title]=測試API發(fā)布YYY¬e=正文正文正文正文正文正文正文正文正&data[source_url]=https://news.baidu.com/"
提交地址為:post_url = f"https://aaa.com/index.php?appid=1&appsecret=PHPCMFD9C715F50B1A6&api_auth_code={login_code}&api_auth_uid=1&s=member&app=news&c=home&m=add";
官方提供的數(shù)據(jù)過濾功能太強了,太復(fù)雜了。完全脫離實際需要了。
請問如何提交數(shù)據(jù)可以不經(jīng)過官方數(shù)據(jù)過濾程序?
回復(fù)@kungfu 這個數(shù)據(jù)被過濾掉了嗎,用鉤子看看數(shù)據(jù)傳了沒
被過濾不太可能,這正常的數(shù)據(jù),先后臺添加看看字段可對應(yīng)吧。