Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-10-29 10:32:59 +00:00
parent 0a3298c33b
commit c5c2867dc3
127 changed files with 895 additions and 0 deletions

View 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"
}'

View 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"
}'

View 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
View 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"
}'

View 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"
}
}'