2020-05-20 14:12:33 +08:00
|
|
|
|
# 音频投币&收藏
|
|
|
|
|
|
2020-07-19 21:56:58 +08:00
|
|
|
|
本页所有操作均需登录(SESSDATA)
|
2020-05-20 14:12:33 +08:00
|
|
|
|
|
|
|
|
|
## 查询音频收藏状态
|
|
|
|
|
|
|
|
|
|
> http://www.bilibili.com/audio/music-service-c/web/collections/songs-coll
|
|
|
|
|
|
2020-07-14 18:44:44 +08:00
|
|
|
|
*请求方式:GET*
|
2020-05-20 14:12:33 +08:00
|
|
|
|
|
2020-07-19 21:56:58 +08:00
|
|
|
|
认证方式:Cookie(SESSDATA)
|
|
|
|
|
|
|
|
|
|
鉴权方式:Cookie中`DedeUserID`存在且不为0
|
|
|
|
|
|
2020-06-08 22:44:46 +08:00
|
|
|
|
**url参数:**
|
2020-05-20 14:12:33 +08:00
|
|
|
|
|
|
|
|
|
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
|
|
|
|
|
| ------ | ---- | -------- | ------ | ---- |
|
2020-06-08 22:44:46 +08:00
|
|
|
|
| sid | num | 音频auID | 必要 | |
|
2020-05-20 14:12:33 +08:00
|
|
|
|
|
|
|
|
|
**json回复:**
|
|
|
|
|
|
|
|
|
|
根对象:
|
|
|
|
|
|
|
|
|
|
| 字段 | 类型 | 内容 | 备注 |
|
|
|
|
|
| ---- | ---- | -------- | ------------------------------------------------------------ |
|
|
|
|
|
| code | num | 返回值 | 0:成功<br />72000000:参数错误<br />72010002:账号未登陆<br />7201006:该音频不存在或已被下架 |
|
|
|
|
|
| msg | str | 错误信息 | 默认为success |
|
|
|
|
|
| data | bool | 是否收藏 | false:未收藏<br />true:已收藏 |
|
|
|
|
|
|
|
|
|
|
**示例:**
|
|
|
|
|
|
|
|
|
|
查询音频`au13598`的收藏状态
|
|
|
|
|
|
2020-07-19 21:56:58 +08:00
|
|
|
|
```shell
|
2020-10-16 19:31:41 +08:00
|
|
|
|
curl -G 'http://www.bilibili.com/audio/music-service-c/web/collections/songs-coll' \
|
|
|
|
|
--data-urlencode 'sid=13598' \
|
2020-07-19 21:56:58 +08:00
|
|
|
|
-b 'SESSDATA=xxx;DedeUserID=1;'
|
|
|
|
|
```
|
2020-05-20 14:12:33 +08:00
|
|
|
|
|
2020-08-31 16:37:38 +08:00
|
|
|
|
<details>
|
|
|
|
|
<summary>查看响应示例:</summary>
|
|
|
|
|
|
2020-05-20 14:12:33 +08:00
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"code": 0,
|
|
|
|
|
"msg": "success",
|
|
|
|
|
"data": true
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
2020-08-31 16:37:38 +08:00
|
|
|
|
</details>
|
|
|
|
|
|
2020-05-20 14:12:33 +08:00
|
|
|
|
## 查询音频投币数
|
|
|
|
|
|
|
|
|
|
> http://www.bilibili.com/audio/music-service-c/web/coin/audio
|
|
|
|
|
|
2020-07-14 18:44:44 +08:00
|
|
|
|
*请求方式:GET*
|
2020-05-20 14:12:33 +08:00
|
|
|
|
|
2020-07-19 21:56:58 +08:00
|
|
|
|
认证方式:Cookie(SESSDATA)
|
|
|
|
|
|
|
|
|
|
鉴权方式:Cookie中`DedeUserID`存在且不为0
|
|
|
|
|
|
2020-06-08 22:44:46 +08:00
|
|
|
|
**url参数:**
|
2020-05-20 14:12:33 +08:00
|
|
|
|
|
|
|
|
|
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
|
|
|
|
|
| ------ | ---- | -------- | ------ | ---- |
|
2020-06-08 22:44:46 +08:00
|
|
|
|
| sid | num | 音频auID | 必要 | |
|
2020-05-20 14:12:33 +08:00
|
|
|
|
|
|
|
|
|
**json回复:**
|
|
|
|
|
|
|
|
|
|
根对象:
|
|
|
|
|
|
|
|
|
|
| 字段 | 类型 | 内容 | 备注 |
|
|
|
|
|
| ---- | ---- | -------- | ------------------------------------------------------------ |
|
|
|
|
|
| code | num | 返回值 | 0:成功<br />72000000:参数错误<br />72010002:账号未登陆<br />7201006:该音频不存在或已被下架 |
|
|
|
|
|
| msg | str | 错误信息 | 默认为success |
|
|
|
|
|
| data | num | 投币数量 | 0为未投币,上限为2 |
|
|
|
|
|
|
|
|
|
|
**示例:**
|
|
|
|
|
|
|
|
|
|
查询音频`au13598`的投币数
|
|
|
|
|
|
2020-07-19 21:56:58 +08:00
|
|
|
|
```shell
|
2020-10-16 19:31:41 +08:00
|
|
|
|
curl -G 'http://www.bilibili.com/audio/music-service-c/web/coin/audio' \
|
|
|
|
|
--data-urlencode 'sid=15664' \
|
2020-07-19 21:56:58 +08:00
|
|
|
|
-b 'SESSDATA=xxx;DedeUserID=1;'
|
|
|
|
|
```
|
2020-05-20 14:12:33 +08:00
|
|
|
|
|
2020-08-31 16:37:38 +08:00
|
|
|
|
<details>
|
|
|
|
|
<summary>查看响应示例:</summary>
|
|
|
|
|
|
2020-05-20 14:12:33 +08:00
|
|
|
|
```json
|
|
|
|
|
{
|
|
|
|
|
"code": 0,
|
|
|
|
|
"msg": "success",
|
|
|
|
|
"data": 1
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
2020-08-31 16:37:38 +08:00
|
|
|
|
</details>
|