mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
16 lines
250 B
Go
Executable File
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)
|
|
}
|