mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-12 02:45:11 +00:00
19 lines
316 B
Go
Executable File
19 lines
316 B
Go
Executable File
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(¬es.CreateRequest{
|
|
Text: "This is my note",
|
|
Title: "New Note",
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|