公共上传接口 + 送达/已读/点击 全链路回传 · 数据库 ytai66_track
| 项目 | 状态 |
|---|---|
| 数据库 | ✅ 连接正常 (ytai66_track) |
| API Key | ✅ 已配置 |
| 上传接口 | https://ios.ytai66.cc/upload.php |
| 建任务接口 | https://ios.ytai66.cc/create.php |
| 数据看板 | https://ios.ytai66.cc/board.php?key=<API Key> |
| 步骤 | 说明 |
|---|---|
| 1. 建任务 | POST /create.php 传入收件人列表,返回每条一个 token 和追踪链接 |
| 2. 发送 | 用 token 拼短链放进正文;发完把 guid 记下来(chat.db 里能读到) |
| 3. 回传 | 发送端定时把状态 POST 到 /upload.php(见下) |
| 4. 查看 | 打开 /board.php?key= 或直接查库 |
curl -X POST 'https://ios.ytai66.cc/upload.php' \
-H 'Content-Type: application/json' \
-H 'X-Api-Key: <你的API Key>' \
-d '{
"channel": "imessage",
"items": [
{ "token": "<create返回的token>",
"event": "delivered",
"at": "2026-11-05 10:00:00" }
]
}'
| event | 含义 · 谁会回传 |
|---|---|
sent | 已发出(AppleScript 发送成功) |
delivered | 送达回执(chat.db 的 date_delivered) |
read | 已读回执(对方开启已读回执才有) |
reply | 对方回复了 |
click | 点了正文里的追踪短链 |
failed | 失败(含 chat.db 的 error 码) |
匹配顺序:token → guid → addr,任选其一即可。
单次最多 500 条,支持 JSON 或 form。