Loading...
Loading...
Compare original and translation side by side
membranenpm install -g @membranehq/climembranenpm install -g @membranehq/climembrane login --tenantmembrane login complete <code>membrane login --tenantmembrane login complete <code>membrane search botstar --elementType=connector --jsonoutput.items[0].element?.idmembrane connect --connectorId=CONNECTOR_ID --jsonmembrane search botstar --elementType=connector --jsonoutput.items[0].element?.idmembrane connect --connectorId=CONNECTOR_ID --jsonmembrane connection list --jsonconnectionIdmembrane connection list --jsonconnectionIdmembrane action list --intent=QUERY --connectionId=CONNECTION_ID --jsonmembrane action list --intent=QUERY --connectionId=CONNECTION_ID --json| Name | Key | Description |
|---|---|---|
| List Bots | list-bots | Get a list of all your bots |
| List Entities | list-entities | Get all CMS entities for a bot |
| List Entity Items | list-entity-items | Get all items for a CMS entity with pagination |
| List Bot Attributes | list-bot-attributes | Get all bot attributes for a bot |
| Get Bot | get-bot | Get a bot by ID |
| Get Entity | get-entity | Get a CMS entity by ID |
| Get Entity Item | get-entity-item | Get a single CMS entity item by ID |
| Get User | get-user | Get user info for a bot |
| Create Bot | create-bot | Create a new bot |
| Create Entity | create-entity | Create a new CMS entity |
| Create Entity Item | create-entity-item | Create a new CMS entity item |
| Create Bot Attribute | create-bot-attribute | Create a new bot attribute |
| Create User Attribute | create-user-attribute | Create a custom user attribute for a bot |
| Update Entity | update-entity | Update a CMS entity |
| Update Entity Item | update-entity-item | Update a CMS entity item |
| Update Bot Attribute | update-bot-attribute | Update an existing bot attribute |
| Update User | update-user | Update user attributes for a bot user |
| Delete Entity | delete-entity | Delete a CMS entity |
| Delete Entity Item | delete-entity-item | Delete a CMS entity item |
| Send Message | send-message | Send a message to a Facebook audience via Botstar |
| 名称 | 键名 | 描述 |
|---|---|---|
| 列出机器人 | list-bots | 获取你名下所有机器人的列表 |
| 列出实体 | list-entities | 获取某个机器人的所有CMS实体 |
| 列出实体项 | list-entity-items | 分页获取某个CMS实体的所有项 |
| 列出机器人属性 | list-bot-attributes | 获取某个机器人的所有属性 |
| 获取机器人 | get-bot | 根据ID获取单个机器人 |
| 获取实体 | get-entity | 根据ID获取单个CMS实体 |
| 获取实体项 | get-entity-item | 根据ID获取单个CMS实体项 |
| 获取用户 | get-user | 获取某个机器人的用户信息 |
| 创建机器人 | create-bot | 创建新的机器人 |
| 创建实体 | create-entity | 创建新的CMS实体 |
| 创建实体项 | create-entity-item | 创建新的CMS实体项 |
| 创建机器人属性 | create-bot-attribute | 创建新的机器人属性 |
| 创建用户属性 | create-user-attribute | 为某个机器人创建自定义用户属性 |
| 更新实体 | update-entity | 更新CMS实体 |
| 更新实体项 | update-entity-item | 更新CMS实体项 |
| 更新机器人属性 | update-bot-attribute | 更新已有的机器人属性 |
| 更新用户 | update-user | 更新某个机器人用户的属性 |
| 删除实体 | delete-entity | 删除CMS实体 |
| 删除实体项 | delete-entity-item | 删除CMS实体项 |
| 发送消息 | send-message | 通过 Botstar 向 Facebook 受众发送消息 |
membrane action run --connectionId=CONNECTION_ID ACTION_ID --jsonmembrane action run --connectionId=CONNECTION_ID ACTION_ID --json --input "{ \"key\": \"value\" }"membrane action run --connectionId=CONNECTION_ID ACTION_ID --jsonmembrane action run --connectionId=CONNECTION_ID ACTION_ID --json --input "{ \"key\": \"value\" }"membrane request CONNECTION_ID /path/to/endpoint| Flag | Description |
|---|---|
| HTTP method (GET, POST, PUT, PATCH, DELETE). Defaults to GET |
| Add a request header (repeatable), e.g. |
| Request body (string) |
| Shorthand to send a JSON body and set |
| Send the body as-is without any processing |
| Query-string parameter (repeatable), e.g. |
| Path parameter (repeatable), e.g. |
membrane request CONNECTION_ID /path/to/endpoint| 标识 | 描述 |
|---|---|
| HTTP 请求方法(GET、POST、PUT、PATCH、DELETE),默认为 GET |
| 添加请求头(可重复使用),例如 |
| 请求体(字符串格式) |
| 快捷方式,用于发送JSON请求体并自动设置 |
| 原样发送请求体,不做任何处理 |
| 查询字符串参数(可重复使用),例如 |
| 路径参数(可重复使用),例如 |
membrane action list --intent=QUERYmembrane action list --intent=QUERY