Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2022-02-24 16:11:57 +00:00
parent f478825008
commit a5c68cd8ab
24 changed files with 1208 additions and 1190 deletions

View File

@@ -0,0 +1,18 @@
package main
import (
"fmt"
"os"
"go.m3o.com/chat"
)
// Create a new chat room
func main() {
chatService := chat.NewChatService(os.Getenv("M3O_API_TOKEN"))
rsp, err := chatService.Create(&chat.CreateRequest{
Description: "The general chat room",
Name: "general",
})
fmt.Println(rsp, err)
}