Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-10-29 12:43:44 +00:00
parent a3b4eba5f1
commit 9482db748c
16 changed files with 511 additions and 467 deletions

View File

@@ -0,0 +1,17 @@
package example
import (
"fmt"
"os"
"go.m3o.com/notes"
)
// Specify the note to events
func SubscribeToEvents() {
notesService := notes.NewNotesService(os.Getenv("M3O_API_TOKEN"))
rsp, err := notesService.Subscribe(&notes.SubscribeRequest{
Id: "63c0cdf8-2121-11ec-a881-0242e36f037a",
})
fmt.Println(rsp, err)
}