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 Server吗? #377

Closed
shanehh opened this issue Jan 31, 2020 · 3 comments
Closed

大大可以提供API Server吗? #377

shanehh opened this issue Jan 31, 2020 · 3 comments

Comments

@shanehh
Copy link

shanehh commented Jan 31, 2020

No description provided.

@nondanee
Copy link
Owner

什么 API?

@shanehh
Copy link
Author

shanehh commented Jan 31, 2020

什么 API?

类似这个

@nondanee
Copy link
Owner

有桥接用的 server

node bridge.js # http://127.0.0.1:9000

支持的 PATH

  • /qq/check
  • /qq/track
  • /xiami/check
  • /xiami/track
  • /baidu/check
  • /kugou/check
  • /kugou/search
  • /kuwo/check
  • /kuwo/track
  • /migu/check
  • /migu/track
  • /joox/check
  • /joox/track
  • /youtube/check
  • /youtube/track

provider 按被墙情况导出方法,需要别的 api 可以自行在 module.exports = {} 里增加

参数均写在 url 里,method 不限

/<provider>/check 调用示例

需要参数 info (JSON String),必须有 keyword

/<provider>/check?{"keyword":"笑忘歌 - 五月天"}

返回歌曲 url

/<provider>/search 调用示例

需要参数 info,同 /<provider>/check

/<provider>/search?{"keyword":"笑忘歌 - 五月天"}

返回对应平台歌曲 id (JSON String/number/string)

/<provider>/track 调用示例

需要参数平台歌曲 id (JSON String/number/string)

/qq/track?{"song":"0034UmOI0ObAqd","file":"001pSSJ10V7r7e"}
/kuwo/track?443605

返回歌曲 url

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