Obtain Access Tokens
Google provides a Calendar API which lets you access your Google account's calendar events. Let's start by creating an Application and register it with Google's API console.
Navigate to the Google API Credentials page.
Click Create Credentials.
From the dropdown, select "OAuth client ID"
Select "TV and Limited Input devices" from the dropdown and give your client a name.
Click "Create".