Files
m3o-go/examples/stream/listChannels/listChannels.go
2021-11-03 15:16:55 +00:00

16 lines
284 B
Go
Executable File

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