Skip to content

Instantly share code, notes, and snippets.

@ehsansabet
Last active October 6, 2023 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehsansabet/c94d1308e2b99cec271c9d764d7c9cad to your computer and use it in GitHub Desktop.
Save ehsansabet/c94d1308e2b99cec271c9d764d7c9cad to your computer and use it in GitHub Desktop.
Add Event to Google Calendar
{
"categories": [
{
"id": "6c8438a5-1b1a-4869-9c0c-9f7910f42075",
"name": "Shortcuts",
"shortcuts": [
{
"codeOnPrepare": "title \u003d prompt(\"Event Title\");\nstartDate \u003d promptDate(\"YYYYMMDD\") + \"T\" + promptTime(\"HHmmSS\");\nendDate \u003d promptDate(\"YYYYMMDD\") + \"T\" + promptTime(\"HHmmSS\");\ncURL \u003d \"http://www.google.com/calendar/event?action\u003dTEMPLATE\u0026dates\u003d\" + startDate + \"/\" + endDate + \"\u0026text\u003d\" + title;\nopenUrl(cURL);\n",
"description": "Add event to Google calendar with some simple questions.",
"executionType": "scripting",
"iconName": "flat_color_calendar",
"id": "5ed03151-4d6c-4b12-a813-547b6ebbb774",
"name": "Add Event"
}
]
}
],
"compatibilityVersion": 71,
"version": 71
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment