Files
m3o-go/examples/stream/listChannels/listChannels/main.go
2021-12-09 15:06:12 +00:00

16 lines
273 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/stream"
)
// List all the active channels
func main() {
streamService := stream.NewStreamService(os.Getenv("M3O_API_TOKEN"))
rsp, err := streamService.ListChannels(&stream.ListChannelsRequest{})
fmt.Println(rsp, err)
}