Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ 最近, 最好, PB, 争议 40l, blitz 记录 #345

Open
WOSHIZHAZHA120 opened this issue Jun 20, 2024 · 3 comments
Open

✨ 最近, 最好, PB, 争议 40l, blitz 记录 #345

WOSHIZHAZHA120 opened this issue Jun 20, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@WOSHIZHAZHA120
Copy link
Contributor

WOSHIZHAZHA120 commented Jun 20, 2024

API

https://ch.tetr.io/api/streams/any_userrecent_5eb3a6530b29196c155074e8

https://ch.tetr.io/api/streams/40l_userrecent_5eb3a6530b29196c155074e8

https://ch.tetr.io/api/streams/blitz_userrecent_5eb3a6530b29196c155074e8

不明原因上面这俩的 records 总是为空, 即使两分钟内有游玩记录

https://ch.tetr.io/api/streams/40l_userbest_5eb3a6530b29196c155074e8

https://ch.tetr.io/api/streams/blitz_userbest_5eb3a6530b29196c155074e8

data.records 是一个数组
如果是查询 any 时类型可以根据 record.endcontext.gameType 判断
然后或许可以使用 tetris-stats TETR.IO recent_40l #2, tetris-stats TETR.IO 40l #2 这样查询 🤔

页面

v2/tetrio/record/40lv2/tetrio/record/blitz 添加了 typepersonal_rank

type 表现为
best 黄色卡片加黄色辉光文字, 用于 PB#1
personal_best 黄色卡片, 用于其他 PB
recent 蓝色卡片, 用于最近打的, 没有 PB
disputed 红色卡片, 用于有争议的记录

@WOSHIZHAZHA120 WOSHIZHAZHA120 changed the title ✨ 最近 40l, blitz 记录 ✨ 最近, 最好 40l, blitz 记录 Jun 20, 2024
@shoucandanghehe shoucandanghehe added the enhancement New feature or request label Jun 20, 2024
@WOSHIZHAZHA120 WOSHIZHAZHA120 changed the title ✨ 最近, 最好 40l, blitz 记录 ✨ 最近, 最好, PB, 争议 40l, blitz 记录 Jul 4, 2024
@WOSHIZHAZHA120 WOSHIZHAZHA120 changed the title ✨ 最近, 最好, PB, 争议 40l, blitz 记录 ✨ 最近, 最好, PB, 争议 40l, blitz 记录 Jul 4, 2024
@shoucandanghehe
Copy link
Member

shoucandanghehe commented Aug 7, 2024

streams api已失效 不知道新的是什么)

新的:

https://ch.tetr.io/api/users/{USER}/records/{40l | blitz}/top
https://ch.tetr.io/api/users/{USER}/records/{40l | blitz}/recent
https://ch.tetr.io/api/users/{USER}/records/{40l | blitz}/progression

@shoucandanghehe
Copy link
Member

api已适配,用什么命令触发呢(

@shoucandanghehe
Copy link
Member

@WOSHIZHAZHA120 新api会返回个array,要不先按rank那样列个表,然后回复序号来输出详细信息?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants