Amagi API 文档 - v5.13.0
    正在准备搜索索引...

    函数 getBilibiliData

    • 获取B站数据

      参数

      • ..._args: any[]

      返回 never

      v6 已废弃,请使用 bilibiliFetcher 或 client.bilibili.fetcher 替代

      调用时抛出废弃错误

      // 旧用法 (已废弃,会抛出错误)
      const data = await getBilibiliData('videoInfo', { bvid: 'BV123' }, cookie)

      // 新用法
      import { bilibiliFetcher } from '@ikenxuan/amagi'
      const data = await bilibiliFetcher.fetchVideoInfo({ bvid: 'BV123' }, cookie)

      // 或使用客户端实例
      const client = createAmagiClient({ cookies: { bilibili: cookie } })
      const data = await client.bilibili.fetcher.fetchVideoInfo({ bvid: 'BV123' })