Google Calendar OMG Microservice
An OMG service for google calendar, it allows users to create and edit events. Reminders can be enabled for events, with options available for type and time. Event locations can also be added, and other users can be invited to events.
Create Calendar
google-calendar createCalendar summary:'calendar summary' description:'calendar description' location:'geographic location'
{"conferenceProperties": {"object"},"description": "calendar description","etag": "etag","id": "calendar Id","kind": "calendar#calendar","location": "geographic location","summary": "calendar summary", "timeZone": "UTC"}
Create Event
google-calendar createEvent calendarId:'calendar Id' summary:'Event summary' description:'Event description' location:'location' attendeesList:'["abc@example.com","xyz@example.com"]'startDate:'2019-08-02T12:00:00.000Z' endDate:'2019-08-02T16:00:00.000Z'
{"attendees": ["attendees list"],"created": "2019-07-30T10:45:20.000Z","creator": {"creator details"},"description": "Event description","end": {"dateTime": "2019-08-02T16:00:00Z"},"etag": "etag","htmlLink": "htmlLink","iCalUID": "iCalUID","id": "event id","kind": "calendar#event","location": "Pune","organizer": {"organizer details"},"start": {"dateTime": "2019-08-02T12:00:00Z"},"status": "confirmed","summary": "Event summary","updated": "2019-07-30T10:45:20.628Z"}
Get Calendar By ID
google-calendar getCalendar calendarId:'calendar Id'
{"accessRole": "owner","backgroundColor": "#cca6ac","colorId": "21","conferenceProperties": {"object"},"description": "calendar description","etag": "etag","id": "calendar Id","kind": "calendar#calendar","location": "geographic location","summary": "calendar summary", "timeZone": "UTC"}
Event List
google-calendar eventList
{"etag": "etag",[{"accessRole": "owner","backgroundColor": "#cca6ac","colorId": "21","conferenceProperties": {"object"},"description": "calendar description","etag": "etag","id": "calendar Id","kind": "calendar#calendar","location": "geographic location","summary": "calendar summary", "timeZone": "UTC"}] ,"kind": "calendar#calendarList", "nextPageToken": "nextPageToken"}
Get Event By ID
google-calendar getEvent calendarId:'calendar Id' eventId:'event Id'
{"attendees": ["attendees list"],"created": "2019-07-30T10:45:20.000Z","creator": {"creator details"},"description": "Event description","end": {"dateTime": "2019-08-02T16:00:00Z"},"etag": "etag","htmlLink": "htmlLink","iCalUID": "iCalUID","id": "event id","kind": "calendar#event","location": "Pune","organizer": {"organizer details"},"start": {"dateTime": "2019-08-02T12:00:00Z"},"status": "confirmed","summary": "Event summary","updated": "2019-07-30T10:45:20.628Z"}
Curious to learn more?
✨🍰✨
Create Calendar
$ omg run createCalendar -a summary=<SUMMARY> -a description=<DESCRIPTION> -a location=<LOCATION> -e KEY=<BASE64_DATA_OF_JSON_KEY_FILE>
Create Event
$ omg run createEvent -a calendarId=<CALENDAR_ID> -a summary=<SUMMARY> -a description=<DESCRIPTION> -a location=<LOCATION> -a attendeesList=<LIST_ATTENDEES_EMAIL_ADDRESS> -a startDate=<START_DATE> -a endDate=<END_DATE> -e KEY=<BASE64_DATA_OF_JSON_KEY_FILE>
Note: The Start and End date should be string in this "2006-01-02T15:04:05.000Z" format.
Get Event By ID
$ omg run getCalendar -a calendarId=<CALENDAR_ID> -e KEY=<BASE64_DATA_OF_JSON_KEY_FILE>
Event List
$ omg run eventList -e KEY=<BASE64_DATA_OF_JSON_KEY_FILE>
Get Event By ID
$ omg run getEvent -a calendarId=<CALENDAR_ID> -a eventId=<EVENT_ID> -e KEY=<BASE64_DATA_OF_JSON_KEY_FILE>
Note: The OMG CLI requires Docker to be installed.
License
MIT License.