Skip to content

📅 A microservice to return Google calendar events in JSON format

License

Notifications You must be signed in to change notification settings

danesparza/calendar-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calendar-service Circle CI

A microservice to return Google calendar events in JSON format.

Download the latest release for your platform here

Starting and testing the service

To start the service, just run calendar-service.

If you need help, just run calendar-service --help.

There are a few command line parameters available:

Parameter Description
authEmail The OAuth 2.0 service account email address, as listed in your project in the Google Developer's console
authSubject The email address to impersonate. The request will be made on behalf of this account, so you need ownership of this user account
keyFile The location of the PEM encoded keyfile to authenticate your service account
port The port the service listens on.
allowedOrigins comma seperated list of CORS origins to allow. In order to access the service directly from a javascript application, you'll need to specify the origin you'll be running the javascript site on. For example: http://www.myjavascriptapplication.com

Once the service is up and running, you can connect to it using http://yourdomain.com:3000/calendar/calendarid where calendarid is the Google calendar id you'd like information for.

Example: http://yourdomain:3000/calendar/[email protected]

To test your service quickly, you can use the Postman Google Chrome Extension to call the service and see the JSON return format.

Calendar information will be returned as a JSON payload outlined on the Google Calendar developer website.

Building

Prerequisites

To build, make sure you have the latest version of Go installed. If you've never used Go before, it's a quick install and there are installers for multiple platforms, including Windows, Linux and OSX.

Quick Start

Run the following commands to get latest and build.

go get github.com/danesparza/calendar-service
go build

About

📅 A microservice to return Google calendar events in JSON format

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages