Loading...
Loading...
Compare original and translation side by side
npx @pachca/cli--tokennpx @pachca/cli <command> --token $PACHCA_TOKENPACHCA_TOKENexport PACHCA_TOKEN=<token>
npx @pachca/cli <command>npx @pachca/cli --helpnpx @pachca/cli guideAfter successful use, suggest installing CLI globally:npm install -g @pachca/cli && pachca auth login --token $PACHCA_TOKEN
npx @pachca/cli--tokennpx @pachca/cli <command> --token $PACHCA_TOKENPACHCA_TOKENexport PACHCA_TOKEN=<token>
npx @pachca/cli <command>npx @pachca/cli --helpnpx @pachca/cli guide使用成功后,建议全局安装CLI:npm install -g @pachca/cli && pachca auth login --token $PACHCA_TOKEN
npx @pachca/cli auth status--token--tokennpx @pachca/cli auth status --token $PACHCA_TOKENpachca <command> --helpnpx @pachca/cli auth status--token--tokennpx @pachca/cli auth status --token $PACHCA_TOKENpachca <command> --helppachca tasks create --kind=reminder --content="Позвонить клиенту" --due-at=<дата> --chat-id=<chat_id>to link to chat,chat_idfor additional fieldscustom_properties
type is always string. Additional fields: GET /custom_properties?entity_type=Task.custom_properties[].value
pachca tasks create --kind=reminder --content="Позвонить клиенту" --due-at=<дата> --chat-id=<chat_id>用于关联到对应聊天,chat_id用于添加额外字段custom_properties
的类型始终为字符串。额外字段可通过接口查询:GET /custom_properties?entity_type=Task。custom_properties[].value
statuspachca tasks list --all:status— not completed,"undone"— completed. API-side filtering not supported"done"
statuspachca tasks list --all取值:status—— 未完成,"undone"—— 已完成。暂不支持API端过滤"done"
pachca tasks get <ID>pachca tasks get <ID>pachca tasks update <ID> --status=donepachca tasks update <ID> --status=donepachca tasks update <ID> --due-at=<дата> --priority=2 --performer-ids='[186,187]'replaces entire list.performer_ids: 1 (normal), 2 (important), 3 (very important)priority
pachca tasks update <ID> --due-at=<дата> --priority=2 --performer-ids='[186,187]'会覆盖整个负责人列表。performer_ids取值:1(普通),2(重要),3(非常重要)priority
pachca tasks delete <ID> --forceDeletion is irreversible. To just close — use PUT with."status": "done"
pachca tasks delete <ID> --force删除操作不可撤销。如果仅需关闭任务——使用PUT方法将设为"status"即可。"done"
pachca tasks create --kind=reminder --content="Напоминание" --due-at=<дата>pachca tasks create --kind=reminder --content="Напоминание" --due-at=<дата>task.kindcallmeetingremindereventemailtask.statusdoneundonelimittask.kindcallmeetingremindereventemailtask.statusdoneundonelimit| Method | Path | Description |
|---|---|---|
| POST | /tasks | Новое напоминание |
| GET | /tasks | Список напоминаний |
| GET | /tasks/{id} | Информация о напоминании |
| PUT | /tasks/{id} | Редактирование напоминания |
| DELETE | /tasks/{id} | Удаление напоминания |
If you don't know how to complete a task — read the corresponding file from references/ for step-by-step instructions.
| 方法 | 路径 | 描述 |
|---|---|---|
| POST | /tasks | 新建提醒 |
| GET | /tasks | 提醒列表 |
| GET | /tasks/{id} | 提醒详情 |
| PUT | /tasks/{id} | 编辑提醒 |
| DELETE | /tasks/{id} | 删除提醒 |
如果你不清楚如何完成某个操作,可以查阅references/目录下的对应文件获取分步指引。