Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-10-29 10:44:29 +00:00
parent 4e64b77e47
commit eb73d115f2
212 changed files with 970 additions and 970 deletions

View File

@@ -4,34 +4,6 @@ An [m3o.com](https://m3o.com) API. For example usage see [m3o.com/Notes/api](htt
Endpoints:
## Create
Create a new note
[https://m3o.com/notes/api#Create](https://m3o.com/notes/api#Create)
```go
package example
import(
"fmt"
"os"
"github.com/go.m3o.com/notes"
)
// Create a new note
func CreateAnote() {
notesService := notes.NewNotesService(os.Getenv("M3O_API_TOKEN"))
rsp, err := notesService.Create(&notes.CreateRequest{
Text: "This is my note",
Title: "New Note",
})
fmt.Println(rsp, err)
}
```
## Read
Read a note
@@ -46,7 +18,7 @@ import(
"fmt"
"os"
"github.com/go.m3o.com/notes"
"go.m3o.com/notes"
)
// Read a note
@@ -73,7 +45,7 @@ import(
"fmt"
"os"
"github.com/go.m3o.com/notes"
"go.m3o.com/notes"
)
// List all the notes
@@ -99,7 +71,7 @@ import(
"fmt"
"os"
"github.com/go.m3o.com/notes"
"go.m3o.com/notes"
)
// Update a note
@@ -130,7 +102,7 @@ import(
"fmt"
"os"
"github.com/go.m3o.com/notes"
"go.m3o.com/notes"
)
// Delete a note
@@ -143,3 +115,31 @@ func DeleteAnote() {
fmt.Println(rsp, err)
}
```
## Create
Create a new note
[https://m3o.com/notes/api#Create](https://m3o.com/notes/api#Create)
```go
package example
import(
"fmt"
"os"
"go.m3o.com/notes"
)
// Create a new note
func CreateAnote() {
notesService := notes.NewNotesService(os.Getenv("M3O_API_TOKEN"))
rsp, err := notesService.Create(&notes.CreateRequest{
Text: "This is my note",
Title: "New Note",
})
fmt.Println(rsp, err)
}
```

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"os"
"github.com/go.m3o.com/notes"
"go.m3o.com/notes"
)
// Create a new note

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"os"
"github.com/go.m3o.com/notes"
"go.m3o.com/notes"
)
// Delete a note

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"os"
"github.com/go.m3o.com/notes"
"go.m3o.com/notes"
)
// List all the notes

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"os"
"github.com/go.m3o.com/notes"
"go.m3o.com/notes"
)
// Read a note

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"os"
"github.com/go.m3o.com/notes"
"go.m3o.com/notes"
)
// Update a note