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

前瞻直播兑换码查询API #73

Open
Cassy-Lee opened this issue Aug 16, 2024 · 0 comments
Open

前瞻直播兑换码查询API #73

Cassy-Lee opened this issue Aug 16, 2024 · 0 comments

Comments

@Cassy-Lee
Copy link

URL是https://api-takumi-static.mihoyo.com/event/miyolive/refreshCode?version=3d6c3b&time={精确到秒的时间戳}
需要带一个HTTP请求头x-rpc-act_id,内容是直播页面URL里的act_id,否则会提示活动已结束(返回码-500012)
官方网页请求时会带一个Accept头,内容是application/json, text/plain, */*,试过不带也可以
返回的data内容大概是下面这样的(原神的code_list里会有3个):

{"code_list":[{"title":"{HTML格式兑换码内容}","code":"{兑换码}","img":"{兑换码图标URL}","to_get_time":"{兑换码出现时间戳}"}]}

暂时还没出现的兑换码在列表里是全空的:

{"title":"","code":"","img":"","to_get_time":""}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant