Set Up a Project on the Google Cloud Platform

Learn to set up a project on the Google Cloud Platform to generate OAuth credentials.

In this lesson, we'll go through the steps required to create a project on the Google Cloud Platform (GCP). We'll also learn to enable the Blogger API service and generate the OAuth credentials required to use the Blogger API.

Create a project

Step 1: Head over to the Google Cloud Platform and sign in using your Google account credentials.

Step 2: You'll now be redirected to the Google Cloud console homepage. Click the hamburger menu button in the top left to toggle the navigation menu. From the navigation menu, go to "IAM & Admin" and click "Create a Project".

Step 3: You'll now see the new project page. Enter the project name and click the "CREATE" button.

Step 4: From the top menu bar, click the project name next to the "Google Cloud Platform" label and select the project you just created from the popup window. You'll now be redirected to the project info page.

Enable Blogger API

Step 1: Click the hamburger menu button in the top left to toggle the navigation menu. From the navigation menu, go to "APIs & Services" and click "Enabled APIs & services".

Step 2: From the navigation menu, click "ENABLE APIS AND SERVICES" next to the "APIs & Services" label. This will redirect you to the API library.

Step 3: Type "Blogger API" in the search bar and press the "Enter" key.

Step 4: Select "Blogger API" from the search results. This will open up the Blogger API page.

Step 5: Click the "ENABLE" button. You'll be redirected to the API details page.

Configure consent screen

Step 1: From the “APIs & Services” navigation menu, click the "Credentials" button.

Step 2: On the "Credentials" page, click "CREATE CREDENTIALS" from the top menu bar and select "OAuth client ID" from the dropdown menu. This will redirect you to the OAuth client ID creation page.

Step 3: Click the "CONFIGURE CONSENT SCREEN" button. You'll be redirected to the "OAuth consent screen" page.

Step 4: On the "OAuth consent screen" page, select "External" for "User Type" and click the "CREATE" button. You'll be redirected to the "Edit app registration" page.

Step 5: On the "Edit app registration" page, enter the app name and email address for user support email and developer contact information. Then, click the "SAVE AND CONTINUE" button.

Step 6: To configure "Scopes" for the app, click the "ADD OR REMOVE SCOPES" button.

Step 7: In the "Update selected scopes" window, add the following scopes one by one in the textbox under the "Manually add scopes" heading. After adding each scope, click the "ADD TO TABLE" button.

  • https://www.googleapis.com/auth/blogger
  • https://www.googleapis.com/auth/blogger.readonly

Step 8: After adding both the scopes, click the "UPDATE" button. The added scopes will appear under the "Your non-sensitive scopes" heading.

Step 9: Click the "SAVE AND CONTINUE" button.

Step 10: Under "Test users," leave the default settings and click the "SAVE AND CONTINUE" button. You'll now see the summary for OAuth consent screen.

Step 11: Click the "BACK TO DASHBOARD" button. You'll be redirected to the "OAuth consent screen" dashboard.

Generate OAuth credentials

Step 1: From the “APIs & Services” navigation menu, click the "Credentials" button.

Step 2: On the Credentials page, click "CREATE CREDENTIALS" from the top menu bar and select "OAuth client ID" from the dropdown menu. This time, you'll be redirected to the "Create OAuth client ID" page.

Step 3: In the "Application type" dropdown menu, select "Desktop app" and enter a name for the application. Then, click the "CREATE" button. You'll now see your "Client ID" and "Client Secret" key on the screen in a popup window.

Step 4: Click the "DOWNLOAD JSON" button. This will download a JSON file on your local computer.