Skip to content

关注/取消关注用户

登录后调用此接口,传入用户 id, 和操作 t,可关注/取消关注用户

接口信息

项目
接口地址/follow
请求方式GET / POST
需要登录
对应模块follow
文档分类社交与消息

请求参数

参数类型必填默认值说明
idstring-用户 id
tstring-1为关注,其他为取消关注

HTTP 示例

bash
GET /follow?id=32953014&t=1

编程式调用

ts
import { follow } from 'hana-music-api'

const result = await follow({
  id: '32953014',
  t: '1',
})

console.log(result.body)

补充说明

说明 : 登录后调用此接口,传入用户 id, 和操作 t,可关注/取消关注用户

必选参数 :

id : 用户 id

t : 1为关注,其他为取消关注

接口地址 : /follow

调用例子 : /follow?id=32953014&t=1

Released under the MIT License.