Files
m3o-go/examples/notes/events/subscribeToEvents.go
2021-11-02 11:59:39 +00:00

18 lines
316 B
Go
Executable File

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