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

Add nxapi znca API support #95

Closed
Cypas opened this issue Feb 26, 2024 · 0 comments
Closed

Add nxapi znca API support #95

Cypas opened this issue Feb 26, 2024 · 0 comments
Assignees

Comments

@Cypas
Copy link
Contributor

Cypas commented Feb 26, 2024

Is your feature request related to a problem? Please describe.
脚本添加对nxapi znca API的请求兼容

Describe the solution you'd like
现在公开的f-api只有api.imink.app/fnxapi-znca-api.fancy.org.uk/api/znca/f这两个,nxapi在请求时head需要额外的X-znca-PlatformX-znca-Version字段,具体见https://github.com/samuelthomas2774/nxapi-znca-api?tab=readme-ov-file#public-api
希望脚本可以适配一下,我对ts代码不熟悉就只能麻烦你改了

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
涉及f-api请求的地方加上这两个字段即可
image

@spacemeowx2 spacemeowx2 self-assigned this Feb 27, 2024
spacemeowx2 added a commit that referenced this issue Feb 27, 2024
@Cypas Cypas closed this as completed Mar 7, 2024
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

2 participants