Files
m3o-go/examples/chat/history/getChatHistory/main.go
2022-02-17 16:45:54 +00:00

16 lines
250 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/chat"
)
// List the messages in a chat
func main() {
chatService := chat.NewChatService(os.Getenv("M3O_API_TOKEN"))
rsp, err := chatService.History(&chat.HistoryRequest{})
fmt.Println(rsp, err)
}