mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-17 05:14:52 +00:00
Commit from GitHub Actions (Publish APIs & Clients)
This commit is contained in:
12
examples/youtube/search/node/searchForVideos.js
Executable file
12
examples/youtube/search/node/searchForVideos.js
Executable file
@@ -0,0 +1,12 @@
|
||||
const { YoutubeService } = require("m3o/youtube");
|
||||
|
||||
// Search for videos on YouTube
|
||||
async function searchForVideos() {
|
||||
let youtubeService = new YoutubeService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await youtubeService.search({
|
||||
query: "donuts",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
searchForVideos();
|
||||
Reference in New Issue
Block a user