Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-10-29 13:12:31 +00:00
parent 6d4b56721d
commit 168985fe21
16 changed files with 731 additions and 731 deletions

View File

@@ -4,6 +4,33 @@ An [m3o.com](https://m3o.com) API. For example usage see [m3o.com/Notes/api](htt
Endpoints:
## Subscribe
Specify the note to events
[https://m3o.com/notes/api#Subscribe](https://m3o.com/notes/api#Subscribe)
```go
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)
}
```
## Create
Create a new note
@@ -143,30 +170,3 @@ func DeleteAnote() {
fmt.Println(rsp, err)
}
```
## Subscribe
Specify the note to events
[https://m3o.com/notes/api#Subscribe](https://m3o.com/notes/api#Subscribe)
```go
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)
}
```