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,6 @@
curl "https://api.m3o.com/v1/location/Read" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $M3O_API_TOKEN" \
-d '{
"id": "1"
}'

View File

@@ -0,0 +1,14 @@
curl "https://api.m3o.com/v1/location/Save" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $M3O_API_TOKEN" \
-d '{
"entity": {
"id": "1",
"location": {
"latitude": 51.511061,
"longitude": -0.120022,
"timestamp": "1622802761"
},
"type": "bike"
}
}'

View File

@@ -0,0 +1,12 @@
curl "https://api.m3o.com/v1/location/Search" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $M3O_API_TOKEN" \
-d '{
"center": {
"latitude": 51.511061,
"longitude": -0.120022
},
"numEntities": 10,
"radius": 100,
"type": "bike"
}'