Twist 节点#
¥Twist node
使用 Twist 节点来自动化 Twist 中的工作,并将 Twist 与其他应用集成。n8n 内置支持多种 Twist 功能,包括在通道中创建对话,以及在主题中创建和删除评论。
¥Use the Twist node to automate work in Twist, and integrate Twist with other applications. n8n has built-in support for a wide range of Twist features, including creating conversations in a channel, as well as creating and deleting comments on a thread.
本页列出了 Twist 节点支持的操作列表以及更多资源的链接。
¥On this page, you'll find a list of operations the Twist node supports and links to more resources.
Credentials
请参阅 Twist 凭证 以了解有关设置身份验证的指导。
¥Refer to Twist credentials for guidance on setting up authentication.
操作#
¥Operations
- 通道
¥Channel
-
归档通道
¥Archive a channel
-
发起基于公共或私有通道的对话
¥Initiates a public or private channel-based conversation
-
删除通道
¥Delete a channel
-
获取通道信息
¥Get information about a channel
-
获取所有通道
¥Get all channels
-
取消归档通道
¥Unarchive a channel
-
更新渠道
¥Update a channel
-
注释
¥Comment
-
对主题发表评论
¥Create a new comment to a thread
-
删除评论
¥Delete a comment
-
获取评论信息
¥Get information about a comment
-
获取所有评论
¥Get all comments
-
更新评论
¥Update a comment
-
消息对话
¥Message Conversation
-
在对话中创建一条消息。
¥Create a message in a conversation
-
删除对话中的消息
¥Delete a message in a conversation
-
获取对话中的消息。
¥Get a message in a conversation
-
获取对话中的所有消息
¥Get all messages in a conversation
-
更新对话中的消息
¥Update a message in a conversation
-
线程
¥Thread
-
在通道中创建一个新主题
¥Create a new thread in a channel
-
删除线程
¥Delete a thread
-
获取主题信息
¥Get information about a thread
-
获取所有主题
¥Get all threads
-
更新主题
¥Update a thread
模板和示例#
¥Templates and examples
What to do if your operation isn't supported#
If this node doesn't support the operation you want to do, you can use the HTTP Request node to call the service's API.
You can use the credential you created for this service in the HTTP Request node:
- In the HTTP Request node, select Authentication > Predefined Credential Type.
- Select the service you want to connect to.
- Select your credential.
Refer to Custom API operations for more information.
获取用户 ID#
¥Get the User ID
获取用户的用户 ID:
¥To get the User ID for a user:
- 打开“团队”选项卡。
¥Open the Team tab. 2. 选择用户头像。
¥Select a user's avatar.
3. 复制 Twist URL 中 /u/ 之后的字符串。此字符串是用户 ID。例如,如果 URL 为 https://twist.com/a/4qw45/people/u/475370,则用户 ID 为 475370。
¥Copy the string of characters located after /u/ in your Twist URL. This string is the User ID. For example, if the URL is https://twist.com/a/4qw45/people/u/475370 the User ID is 475370.