Actions59
- 云空间 Actions
- 工具接口 Actions
- 待办任务 Actions
- 机器人 Actions
- 消息卡片(旧) Actions
- 用户 Actions
- 群组 Actions
- 订阅 Actions
订阅 → 添加订阅配置
AI-generatedOverview
This node integrates with the POPO OpenPlatform API to manage subscription configurations. Specifically, the '添加订阅配置' (Add Subscription Configuration) operation allows users to add subscription settings for a robot account, specifying the types of messages to subscribe to and the groups to receive callbacks from. This is useful for automating message handling and notifications in a bot environment, such as subscribing to P2P messages or group message @ mentions for specific robot accounts and groups.
Use Case Examples
- Automate subscription setup for a bot to receive P2P messages and group @ mentions.
- Configure callback URLs and tokens for secure message delivery to a specified endpoint.
Properties
| Name | Meaning |
|---|---|
| requestUrl | The URL to receive push notifications, with a length less than 256 characters. |
| token | Token for the requestUrl to authenticate push notifications, length less than 256 characters. |
| aesKey | Optional 32-character key for encrypting push data to enhance security. If set, data is encrypted in the format {"encrypt":"xxx"}. |
| openMsgOpen | Boolean flag indicating whether message push is enabled (default false). |
| uid | Robot account identifier for which the subscription is being added. |
| authTypes | Types of subscriptions to add, such as P2P message subscription or group message @ subscription. |
| teams | List of group IDs to receive callbacks for all messages within those groups. Maximum 5 groups per operation. |
Output
JSON
response- API response data from adding the subscription configuration
Dependencies
- An API key credential for POPO OpenPlatform API
Troubleshooting
- Ensure the requestUrl is a valid URL and accessible from the POPO platform.
- Verify the token and aesKey lengths and formats are correct to avoid authentication or encryption errors.
- Check that the uid corresponds to a valid robot account with appropriate permissions.
- Limit the number of teams to 5 per operation to avoid API errors.
Links
- POPO OpenPlatform Subscription API Documentation - Official documentation for subscription configuration APIs on POPO OpenPlatform.