Google API authentication working example

by Qwerty Cat

Version 2 (March 8, 2019)

Download (89 downloads)

Sample oauth implementation: '✔ Save to Google Tasks'
https://llamalab.com/automate/community/flows/26973

Working version of automate developer's 'Google API authenticate example'.

Version 2

This is an highly advanced and quite extensive example of using the Dialog web block to create an authenitcation flow which aquires a token used for accessing Google APIs such as Google+, Calendar, Tasks and Sheet, etc. with the HTTP request block.

Full description of the Google authentication flow:
https://developers.google.com/identity/protocols/OAuth2InstalledApp

Prerequisites
• Visit https://console.developers.google.com
• Create a project
• Create "OAuth client ID" credentials (API manager)
• Choose application type "Other" (used for installed apps)
• The "Client ID" and "Client secret" are required to acquire a token
• Enable the APIs to access

How to use
• Start Authenticate
• Choose scope to grant access to
• Choose an Google account to pre-selected for authentication (web) flow, optional
• Paste the project "Client ID"
• Paste the project "Client secret"
• Start Call API
• Choose the API granted access to above