SuperAPI AI 工具集

pp-greatclips

办公与效率

查看项目

更新于 10-16 01:32

技能介绍

用途:该 CLI 用于在命令行发送 Great Clips Online Check-In 单页应用所发的 HTTP 请求,支持 dry-run 预览与 --json 输出。v0.1 已覆盖各接口的请求结构,便于在其上构建流程;真实调用需手动从已登录的 Chrome 会话捕获 Cookie。

主要能力:cancel 取消当前签到;checkin 为自己及最多 5 人提交签到;customer 读取客户资料;geo 将邮编或城市解析为经纬度;hours 读取门店今日及 14 天营业时间(含特殊时段);salons 搜索与查询门店;status 查询排队位置与预计等待;wait 读取 ICS Net Check-In 服务的预计等待时间。

安装与验证:npx -y @mvanhorn/printing-press-library install greatclips --cli-only;验证 greatclips-pp-cli --version。若 npx 失败,可用 go install github.com/mvanhorn/printing-press-library/library/other/greatclips/cmd/greatclips-pp-cli@latest(需 Go 1.26.6+)。

使用方式:命令加 --agent 展开为 --json --compact --no-input --no-color --yes;--dry-run 仅预览请求;--select 过滤字段;--deliver 支持 stdout、file:<path>、webhook:<url>。可用 which 以自然语言查找命令,用 profile 保存常用参数组合。

认证:使用 cid.greatclips.com 的 Auth0 HttpOnly 会话 Cookie,需将已登录 Chrome 的 Cookie 粘贴到 ~/.config/greatclips-pp-cli/config.toml,并设置 GREATCLIPS_TOKEN 占位值,再运行 doctor 验证。

限制:真实调用依赖手动 Cookie 捕获;协议置信度等细节暂未提供;退出码 0 成功、2 用法错误、3 未找到、4 需认证、5 API 错误、7 限流、10 配置错误。