Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-11-02 16:31:05 +00:00
parent 913e2d609a
commit 114660a002
20 changed files with 898 additions and 819 deletions

View File

@@ -0,0 +1,17 @@
package example
import (
"fmt"
"os"
"go.m3o.com/event"
)
// Read stored events
func ReadEventsOnAtopic() {
eventService := event.NewEventService(os.Getenv("M3O_API_TOKEN"))
rsp, err := eventService.Read(&event.ReadRequest{
Topic: "user",
})
fmt.Println(rsp, err)
}