Use when an AI/MCP client needs to call deliver-operate APIs (order queries, etc.) on behalf of a user and must first obtain authorization — covers the device-auth flow to get an ait_ token and the order query API.
/plugin install calling-deliver-operate@datou-skill/plugin marketplace add https://github.com/Garretqaq/plugins-market通过设备授权流程(Device Authorization Flow)获取
ait_令牌,安全地代表用户调用 deliver-operate 订单查询接口。
# 1. 设备授权(首次 / 令牌失效时)
python3 deliver.py authorize
# 2. 查询订单(自动复用缓存令牌)
python3 deliver.py orders --from '2026-06-11 00:00:00' --to '2026-06-17 23:59:59' --page 1 --size 20
# 3. 验证令牌是否有效
python3 deliver.py whoami
# 4. 通用调用任意接口
python3 deliver.py call /api/deliver-order/pageOrderStats --body '{"pageNum":1,"pageSize":20}'
.
├── deliver.py # 主脚本:授权 + 查询 + 通用调用
├── config.json # 本地配置(baseUrl + aiToken),已加入 .gitignore
├── interfaces/
│ ├── _index.md # 接口清单索引
│ └── order-page.md # 订单分页查询接口文档
├── SKILL.md # Skill 元数据(Claude Code 用)
└── README.md # 本文件
deviceCode + verificationUrlait_<hex> 令牌,写入 config.jsonAuthorization: ait_<hex>config.json 中的 aiToken 是用户级敏感令牌,已加入 .gitignore,切勿提交到 gitauthorizecreateTimeLeft + createTimeRight),脚本已强制校验