bl.getCloudStorageByRelation(Object object)
功能描述
获取哔哩哔哩用户关系链能力(关注、粉丝)。
参数
| 属性 | 类型 | 必填 | 说明 |
|---|---|---|---|
| type | string | 是 | following: 关注列表;follower: 粉丝列表 |
| success | function | 否 | 接口调用成功的回调函数 |
| fail | function | 否 | 接口调用失败的回调函数 |
| complete | function | 否 | 接口调用结束的回调函数(调用成功、失败都会执行) |
返回参数
res.data 结构:
| 属性 | 类型 | 说明 |
|---|---|---|
| list | Array | 用户列表 |
list 中每一项结构:
| 属性 | 类型 | 说明 |
|---|---|---|
| face | string | 用户头像 URL |
| open_id | string | 用户 open_id |
| is_mutual | boolean | 是否相互关注 |
示例代码
bl.getCloudStorageByRelation({
type: "following",
success(res) {
console.log(res);
},
fail(err) {
console.log(err);
},
});