API
Batch Upload
批量把远程图片上传成微信素材。
Batch Upload
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
{
"imageUrls": ["https://example.com/1.jpg", "https://example.com/2.jpg"]
}Copy-paste curl
curl -X POST "http://localhost:8080/api/v1/batch-upload" \
-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 '{
"imageUrls": ["https://example.com/1.jpg", "https://example.com/2.jpg"]
}'Agent notes
- 非常适合在创建图文或小绿书之前先处理素材。
- 更适合批量远程图片发布流水线。