google-calendar

command module
v0.0.0-...-c28cf84 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2019 License: MIT Imports: 3 Imported by: 0

README

Google Calendar OMG Microservice

Open Microservice Guide Build Status codecov

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.

Direct usage in Storyscript:

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?

✨🍰✨

Usage with OMG CLI

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL