API
Newspic Draft
用标题、正文和图片 URL 创建小绿书草稿。
Newspic Draft
What it does
创建公众号小绿书草稿。
Required headers
Content-Type: application/json
Wechat-Appid: wx1234567890abcdef
Wechat-App-Secret: your_app_secret
Md2wechat-API-Key: wme_your_api_keyRequest body
{
"title": "小绿书标题",
"content": "正文内容",
"imageUrls": ["https://example.com/1.jpg", "https://example.com/2.jpg"]
}Copy-paste curl
curl -X POST "http://localhost:8080/api/v1/newspic-draft" \
-H "Content-Type: application/json" \
-H "Wechat-Appid: wx1234567890abcdef" \
-H "Wechat-App-Secret: your_app_secret" \
-H "Md2wechat-API-Key: wme_your_api_key" \
-d '{
"title": "小绿书标题",
"content": "正文内容",
"imageUrls": ["https://example.com/1.jpg", "https://example.com/2.jpg"]
}'Agent notes
- 适合不是 Markdown 长文的结果形态。
- 如果你要精细控制素材,建议先走素材上传。