Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2022-02-17 16:45:54 +00:00
parent 1fd3edc2c1
commit f8fea92773
32 changed files with 1686 additions and 1002 deletions

View File

@@ -0,0 +1,20 @@
package main
import (
"fmt"
"os"
"go.m3o.com/chat"
)
// Connect to a chat to receive a stream of messages
// Send a message to a chat
func main() {
chatService := chat.NewChatService(os.Getenv("M3O_API_TOKEN"))
rsp, err := chatService.Send(&chat.SendRequest{
Client: "web",
Subject: "Random",
Text: "Hey whats up?",
})
fmt.Println(rsp, err)
}