作为依赖库使用如何使用 #474
Unanswered
lieternity
asked this question in
Q&A
作为依赖库使用如何使用
#474
Replies: 1 comment
-
// 1. 匯入 UnblockNeteaseMusic 函式庫
const match = require('@unblockneteasemusic/server');
// 你也可以改寫成 ESM 的形式:import match from '@unblockneteasemusic/server';
match(
// 2. 傳入網易雲這首曲子的 ID。
1411692086,
// 3. 傳入你想使用的來源。
// 這裡傳入 `null` 就是使用 UNM 內建的預設來源。
["qq", "kuwo", "ytdlp"]
// 4. 網易雲 API 回傳的音訊資料。
// 這裡可以不填。不傳入只是會花一點時間
// 用網易雲 API 解析曲子 ID 而已。
null,
); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
方法 3. 调用接口
作为依赖库使用
这个该怎么使用,不是很明白,有详细点的说明吗?
Beta Was this translation helpful? Give feedback.
All reactions