gcaltools
gcaltools copied to clipboard
Simple functions to download Google Calendar data.
gcaltools
Simple R library to download Google Calendar data for yourself.
Setup
- Go to https://console.developers.google.com/apis
- Click on
Library
on the left menu - Then search for
Google Calendar API
- Turn on the API by going through
Enable API
(You may have to create a new project using the top bar on this page, after that you should be able to Enable the API). - Then click on
Create Credentials
> SelectGoogle Calendar API
orOAuth client ID
> ChooseOther Non-UI
orOther
for where you call API from - After that you should be able to get to a point where you get two items, (1)
Client ID
and (2)Client Secret
. If it asks you for more then that, you have run into trouble and try again. - Save this to your
.Renviron
file using the following format
GOOGLE_CLIENT_ID = 9555748731-3r345435345345lsdhfodisfj9nsbsidtg.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET = ugOr3434343sfdfdsdCPS5
- Restart your RStudio
Run
- Install and run the following:
devtools::install_github('emadretina/gcaltools')
calendar_data_list <- gcaltools::get_google_calendar_df()
Analyze
This will create a list with two data frames (1) People you met (2) your calendar events