Actions9
Overview
This node interacts with the WeChat Official Account API to manage various content operations such as creating drafts, retrieving drafts, deleting drafts, publishing drafts, checking publish status, uploading media, retrieving material lists, batch publishing drafts, and batch uploading memes. Specifically, the 'Get Material List' operation retrieves a paginated list of permanent media materials (images, videos, voice, news) from the WeChat account, which can be used for content creation and management.
Use Case Examples
- A user wants to fetch a list of images stored in their WeChat Official Account to select thumbnails for new articles.
- A content manager retrieves a list of video materials to embed in upcoming posts.
- An automation workflow fetches voice materials to analyze or repurpose them.
Properties
| Name | Meaning |
|---|---|
| Material Type | The type of materials to retrieve (image, video, voice, news). |
| Offset | Offset for pagination, starting from 0. |
| Count | Number of materials to retrieve, with a maximum of 20. |
Output
JSON
total_count- Total number of materials available of the specified type.item- Array of material items retrieved, each containing details like media_id, name, update_time, and url.materials_summary- A summarized array of materials with media_id, name, update date (formatted), and URL for easier reference.usage_tip- A tip suggesting to copy the media_id from materials_summary for use as thumbnail media ID when creating drafts.
Dependencies
- WeChat Official Account API
Troubleshooting
- Ensure valid API credentials (appId and appSecret) are provided to authenticate requests.
- If no materials are returned, verify that the specified material type exists and that the offset and count parameters are within valid ranges.
- Error messages related to invalid parameters or API failures will be thrown; check the error details for guidance.
Links
- WeChat Official Account API - Get Material List - Official documentation for retrieving permanent materials from WeChat Official Account.