mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-16 04:54:42 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
10
examples/stream/listChannels/node/listChannels.js
Executable file
10
examples/stream/listChannels/node/listChannels.js
Executable file
@@ -0,0 +1,10 @@
|
||||
const { StreamService } = require("m3o/stream");
|
||||
|
||||
// List all the active channels
|
||||
async function listChannels() {
|
||||
let streamService = new StreamService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await streamService.listChannels({});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
listChannels();
|
||||
Reference in New Issue
Block a user