File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change 1
1
2
- // import SunoDeno from "./src/SunoDeno.js";
2
+ import SunoDeno from "./src/SunoDeno.js" ;
3
3
4
- import SunoDeno from 'suno-deno' ;
4
+ //nodejs npm
5
+ //import SunoDeno from 'suno-deno';
6
+ //if deno land
7
+ //import SunoDeno from 'https://unpkg.com/suno-deno';
8
+ //or
9
+ //import SunoDeno from 'npm:suno-deno';
5
10
6
11
async function main ( sid , cookie ) {
7
12
try {
@@ -69,17 +74,15 @@ async function main(sid, cookie) {
69
74
const ids = [ "7cfa03c5-56bb-4eaa-b5e8-84cf0592da9b" ] ;
70
75
const specificSongs = await suno . getMetadata ( ids ) ;
71
76
72
- // const allSongs = await suno.getAllSongs();
73
-
74
- // const lyrics = await suno.generateLyrics("حول مدينة مراكش");
75
- // console.log(lyrics);
77
+ const allSongs = await suno . getAllSongs ( ) ;
78
+ console . log ( { allSongs } ) ;
79
+ const lyrics = await suno . generateLyrics ( "حول مدينة مراكش" ) ;
80
+ console . log ( lyrics ) ;
76
81
} catch ( error ) {
77
82
console . error ( "Error:" , error ) ;
78
83
}
79
84
}
80
-
81
- const cookie =
82
- "__client=eyJhbbEg" ;
83
- const sid = "sess_2gyfPonaEsXq" ;
84
-
85
+ const cookie = '__client=j2s-******3qDO5-' ;
86
+ const sid = 'sess_2*****sXq' ;
85
87
main ( sid , cookie ) ;
88
+
You can’t perform that action at this time.
0 commit comments