Categories
Connected Farm

How to Generate Google API Oauth2 Credentials .

A quick how to on setting up Google API Credentials, which will be needed in some upcoming projects.

Go to https://cloud.google.com/ and sign in, ignore any offers for free trials as the premium services are not required.

Click on Console on the top right.

Click select a project from the top bar and then new project.

Give your project a name.

Click select project.

On the left go to API’s and services and select library.

Search for the API you want to enable and click on it.

Click enable.

Click create credentials on the top right.

Choose the API and data type.

Give the app a name and fill in contact details, same e-mail will do for both.

Click save and continue.

Chose web application for type, provide an app name and redirect URL.

Redirect URL is important it is the URL that Google Oauth2 process will deliver the Authorization tokens. For the Node-Red flows I’ll be providing in the next post you can add http://127.0.0.1:1880/Google/oauth2 and http://127.0.0.1:1880/endpoint/Google/oauth2

Click Done.

Click the edit button, (pen icon).

The Client ID, Client Secret and Redirect URL’s from this page will be needed for authenticating with the Google API.

Facebook Comments