Calendar API - Techblogogy/magic-mirror-base GitHub Wiki
This is a brief rundown of RESTfull requests
Path | Method | Parameters | Description |
---|---|---|---|
/cal/events/get | GET | none | Returns events from today and onwards |
/cal/events/get/today | GET | none | Returns only events from today |
/cal/events/get/range?min=&max= | GET | min ,max - Date in YYYY-MM-DD format |
Returns events between date x and date y |
/cal/events/add | POST | task - Text of current event; date - Date of the event in YYYY-MM-DD format; time (optional) - Event time in hh:mm:ss.sss format |
Adds event to calendar |
/cal/events/update | POST | id - id of event; task - Text of current event; date - Date of the event in YYYY-MM-DD format; time (optional) - Event time in hh:mm:ss.sss format |
Updates event based on id |
/cal/events/delete | POST | id - id of event |
Removes event based on id |
👍 Hopefully I've written this out clearly and you'll understand most of it. Also please write down all the /w API into "Issues" section of repository