Skip to content

收藏视频

调用此接口,可收藏视频

接口信息

项目
接口地址/video/sub
请求方式GET / POST
需要登录
对应模块video_sub
文档分类视频与 MV

请求参数

参数类型必填默认值说明
idstring-视频 id
tstring-1 为收藏,其他为取消收藏

HTTP 示例

bash
GET /video/sub

编程式调用

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

const result = await videoSub({
  id: '123456',
  t: 'your-t',
})

console.log(result.body)

补充说明

说明 : 调用此接口,可收藏视频

必选参数 :

id : 视频 id

t : 1 为收藏,其他为取消收藏

接口地址 : /video/sub

调用例子 : /video/sub

Released under the MIT License.