Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-10-29 13:17:32 +00:00
parent 168985fe21
commit 218188cbcf
18 changed files with 747 additions and 747 deletions

View File

@@ -4,33 +4,6 @@ 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
@@ -170,3 +143,30 @@ 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)
}
```