# 创建文章(Node.js)
const response = await fetch('https://api.jtxww.com/v1/articles', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
title: '校园新闻标题',
content: '正文内容...',
column_id: 1
})
});
# 一键分发到微信公众号(cURL)
curl
-X POST https://api.jtxww.com/v1/distribute \
-H
"Authorization: Bearer YOUR_TOKEN" \
-H
"Content-Type: application/json" \
-d
'{"article_id":123,"channels":["wechat","douyin","toutiao"]}'