forked from ZainCheung/netease-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
336df6e
commit ab6a888
Showing
16 changed files
with
268 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## 服务器部署 | ||
## 服务器部署 {docsify-ignore-all} | ||
|
||
部署到服务器,对于新手还是比较建议安装宝塔面板,然后就可以在浏览器中进行界面化操作,免得有的人不会Linux的命令行。 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# 接口文档 | ||
|
||
## 调用前须知 | ||
|
||
!> 本项目不提供线上 demo,请不要轻易信任使用他人提供的公开服务,如果使用,填写密码时一定要自己加密MD5,以免发生安全问题,泄露自己的账号和密码。 | ||
|
||
!> 为使用方便,降低门槛, 文档示例接口直接使用了 GET 请求,本项目同时支持 GET/POST 请按实际需求使用 | ||
|
||
!> 本项目仅供学习使用,请尊重版权,请勿利用此项目从事商业行为 | ||
|
||
!> API登陆接口只接收MD5加密后的密码,并且不会储存你的个人信息,原密码除了你自己谁也不知道 | ||
|
||
!> 使用本项目不会影响你的听歌风格,刷的歌都来自你的每日推荐歌单。 | ||
|
||
## 登录 | ||
|
||
说明 : 登录有两个接口,建议使用`encodeURIComponent`对密码编码或者使用`POST`请求,避免某些特殊字符无法解析,如`#`(`#`在url中会被识别为hash,而不是query) | ||
|
||
**无论是手机登录还是邮箱登陆,密码都必须使用MD5,不可以直接传入明文** | ||
|
||
明文例如:123456abcd | ||
|
||
MD5例如:efa224f8de55cb668cd01edbccdfc8a9 | ||
|
||
### 1. 手机登录 | ||
|
||
**必选参数 :** | ||
|
||
`uin`: 手机号码 | ||
|
||
`pwd`: 密码 | ||
|
||
**接口地址 :** `/?do=login` | ||
|
||
**可选参数 :** `r`: 0至1的随机数,例如`0.20246864764818318` | ||
|
||
**调用例子 :** `/?do=login&uin=xxx&pwd=yyy` | ||
|
||
### 2. 邮箱登录 | ||
|
||
**必选参数 :** | ||
|
||
`uin`: 163 网易邮箱 | ||
|
||
`pwd`: 密码 | ||
|
||
**接口地址 :** `/?do=email` | ||
|
||
**调用例子 :** `/?do=email&uin=xxx&pwd=yyy` | ||
|
||
完成登录后 , 会在浏览器保存一个 Cookies 用作登录凭证 , 大部分 API 都需要用到这个 Cookies,请求会自动带上 Cookies | ||
|
||
## 签到 | ||
|
||
说明:调用接口这个接口可以签到 | ||
|
||
**接口地址 :** `/?do=sign` | ||
|
||
## 打卡听歌 | ||
|
||
说明:由于网易云官方问题,如果打卡听歌只刷了一部分,可以多请求几次,建议每次间隔30秒请求3次左右 | ||
|
||
**接口地址 :** `/?do=daka` | ||
|
||
## 获取用户详情 | ||
|
||
说明 : 登陆后调用此接口 , 传入用户 id, 可以获取用户详情 | ||
|
||
**必选参数 :** | ||
|
||
`uid` : 用户 id | ||
|
||
**接口地址 :** `/?do=detail` | ||
|
||
**调用例子 :** `/?do=detail&uid=32953014` | ||
|
||
注意获取用户信息接口传入的时`uid`,而登陆接口传入的是`uin`,不要搞混淆 | ||
|
||
## 检查接口 | ||
|
||
说明:调用此接口可检查当前项目API是否可用,建议在调用接口前先调用此接口做个判断 | ||
|
||
**接口地址 :** `/?do=check` | ||
|
||
## 刷单曲播放次数 | ||
|
||
说明 : 登陆后调用此接口 , 传入指定歌单id和次数, 可以使该歌单内每首单曲各增加一定的播放次数 | ||
|
||
?> 应用场景常用于定向性训练账号的听歌趋向,可自主纠正系统的个性化推送,让它推送你真正喜欢的内容。这里的次数是指歌单播放次数,比如歌单内有两首歌,次数定为300,则两首歌各增加300次播放次数,如果只想提高某一首歌的次数,那就让这个歌单只留下这一首即可。 | ||
|
||
**必选参数 :** | ||
|
||
`id` : 歌单 id | ||
|
||
`time` : 歌单播放次数 | ||
|
||
**接口地址 :** `/?do=listen` | ||
|
||
**调用例子 :** `/?do=listen&id=5101628912&time=300` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## 云函数 | ||
## 云函数 {docsify-ignore-all} | ||
|
||
**全民升级时代来了!项目支持了云函数!!!** | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## 本地使用 | ||
## 本地使用 {docsify-ignore-all} | ||
|
||
> 本地部署需要电脑下载并**安装配置好Python** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## 服务器部署 | ||
## 服务器部署 {docsify-ignore-all} | ||
|
||
推荐使用宝塔面板,在宝塔应用商店里面有一个Python项目管理器,下载安装,并选择3.0以上版本,推荐3.7.2版本. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.