mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-20 05:55:10 +00:00
Commit from m3o/m3o action
This commit is contained in:
7
curl/notes/create/createANote.sh
Executable file
7
curl/notes/create/createANote.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
curl "https://api.m3o.com/v1/notes/Create" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"text": "This is my note",
|
||||
"title": "New Note"
|
||||
}'
|
||||
6
curl/notes/delete/deleteANote.sh
Executable file
6
curl/notes/delete/deleteANote.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
curl "https://api.m3o.com/v1/notes/Delete" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"id": "63c0cdf8-2121-11ec-a881-0242e36f037a"
|
||||
}'
|
||||
4
curl/notes/list/listAllNotes.sh
Executable file
4
curl/notes/list/listAllNotes.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
curl "https://api.m3o.com/v1/notes/List" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{}'
|
||||
6
curl/notes/read/readANote.sh
Executable file
6
curl/notes/read/readANote.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
curl "https://api.m3o.com/v1/notes/Read" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"id": "63c0cdf8-2121-11ec-a881-0242e36f037a"
|
||||
}'
|
||||
10
curl/notes/update/updateANote.sh
Executable file
10
curl/notes/update/updateANote.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
curl "https://api.m3o.com/v1/notes/Update" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $M3O_API_TOKEN" \
|
||||
-d '{
|
||||
"note": {
|
||||
"id": "63c0cdf8-2121-11ec-a881-0242e36f037a",
|
||||
"text": "Updated note text",
|
||||
"title": "Update Note"
|
||||
}
|
||||
}'
|
||||
Reference in New Issue
Block a user