PopoOpenPlatform Api icon

PopoOpenPlatform Api

POPO OpenPlatform API

订阅 → 添加订阅配置

AI-generated

Overview

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

  1. Automate subscription setup for a bot to receive P2P messages and group @ mentions.
  2. 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

Discussion