Files
m3o-go/examples/notes/events/subscribeToEvents/main.go
2021-11-03 10:19:08 +00:00

18 lines
300 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/notes"
)
// Subscribe to notes events
func main() {
notesService := notes.NewNotesService(os.Getenv("M3O_API_TOKEN"))
rsp, err := notesService.Events(&notes.EventsRequest{
Id: "63c0cdf8-2121-11ec-a881-0242e36f037a",
})
fmt.Println(rsp, err)
}