From 2a5dc16cef0e3858d87ca0940e94f4232e03cec1 Mon Sep 17 00:00:00 2001 From: m3o-actions <> Date: Wed, 3 Nov 2021 14:12:51 +0000 Subject: [PATCH] Commit from m3o/m3o action --- examples/notes/README.md | 52 ++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/examples/notes/README.md b/examples/notes/README.md index 81a5075..7ebdf0d 100755 --- a/examples/notes/README.md +++ b/examples/notes/README.md @@ -4,32 +4,6 @@ An [m3o.com](https://m3o.com) API. For example usage see [m3o.com/Notes/api](htt Endpoints: -## List - -List all the notes - - -[https://m3o.com/notes/api#List](https://m3o.com/notes/api#List) - -```go -package example - -import( - "fmt" - "os" - - "go.m3o.com/notes" -) - -// List all the notes -func ListAllNotes() { - notesService := notes.NewNotesService(os.Getenv("M3O_API_TOKEN")) - rsp, err := notesService.List(¬es.ListRequest{ - - }) - fmt.Println(rsp, err) -} -``` ## Update Update a note @@ -170,3 +144,29 @@ func ReadAnote() { fmt.Println(rsp, err) } ``` +## List + +List all the notes + + +[https://m3o.com/notes/api#List](https://m3o.com/notes/api#List) + +```go +package example + +import( + "fmt" + "os" + + "go.m3o.com/notes" +) + +// List all the notes +func ListAllNotes() { + notesService := notes.NewNotesService(os.Getenv("M3O_API_TOKEN")) + rsp, err := notesService.List(¬es.ListRequest{ + + }) + fmt.Println(rsp, err) +} +```