An AWS (Amazon Web Services) Lambda function for getting events booked into your Google calendar.
-
Clone this repo
git clone https://github.com/hughmp/google-calendar-lambda.gitcd google-calendar-lambda -
Install the dependencies
yarnornpm i -
Install apex and configure
AWS, as explained here -
Set your
AWSprofile environment variableexport AWS_PROFILE=XXXXX(in Windows useset) -
Add your google calendar IDs into
config.jsinfunctions/getBookings/src/ -
Run
apex deploy -s GOOGLE_API_KEY=[INSERT YOUR GOOGLE API KEY HERE] -
Test your function
apex invoke getBookings -
You can now link an AWS
API Gatewayto invoke over HTTP