Skip to content

Instantly share code, notes, and snippets.

@rynop
Last active February 7, 2019 17:11
Show Gist options
  • Save rynop/f410b106476a04765fe3cb5730fb0c30 to your computer and use it in GitHub Desktop.
Save rynop/f410b106476a04765fe3cb5730fb0c30 to your computer and use it in GitHub Desktop.
External event data specification. All fields required unless noted.
{
"name": "Squirt B schedule",
"from": {
"name":"Betsy",
"email":"[email protected]"
},
"to":["[email protected]","[email protected]"]
"timezoneLocation": "America/Chicago",
// eventMappings are Optional if you choose to define events via 'Option 1' below
"eventMappings": [
{
"character": "O",
"displayName": "Overnight",
"description": "Overnight shift",
"startHoursMinutes": "19:00",
"durationMinutes": 750
},
{
"character": "B",
"displayName": "Squirt B",
"description": "Morning practice",
"startHoursMinutes": "08:00",
"durationMinutes": 60
}
],
"events": [
{
"summary": "Option 1: Can specify the entire event",
"start": {
"seconds": 1549557799
},
"durationMinutes": 60,
"description": "Optional. The desc",
"location": "Optional. 123 my street"
},
{
"summary": "Option 2: Can specify the event mapping",
"mappingCharacter":"B",
"startMMDDYYYY": "01/01/2019",
"description": "Optional. Defaults to eventMapping.description",
"location": "Optional. 123 my street"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment