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".

Copy the Client ID and Client Secret to a text document and save it to your computer's desktop. You'll need these values later.

Next, you'll need to authorize your email address. This is a new step recently added by Google to increase the security of applications.

Navigate to https://console.cloud.google.com/apis/credentials/consent and ensure the same project from before is selected.

Under User Type, select External.

Click Create.

Name the App "MagTag Google Calendar" and use your email address in both email fields.

Click Save and Continue.

Under Scopes, click Save and Continue.

Click Add Users and add the email address belonging to the calendar you are viewing on the MagTag.

Click Save and Continue.

Ensure all the information you entered in the previous steps are correct, then click Save and Continue.

This guide was first published on Jan 13, 2021. It was last updated on Jan 13, 2021.

This page (Setup Google Calendar API) was last updated on Jan 11, 2021.

Text editor powered by tinymce.