Create a Google App
Below are the steps for creating a Google App.
Last updated
Below are the steps for creating a Google App.
Last updated
Go to https://console.cloud.google.com/projectcreate
You'll see one of these New Project screen options depending on whether your google account is part of an organization (google workspace) or not.
New Project view for personal Google accounts
New Project view for Google workspace accounts
Add a name for your project.
For google workspace accounts, select your project's Organization and Location.
Click on the CREATE button.
Once your new project has been created, you'll get a notification that looks like this:
Click the SELECT PROJECT link in the notification.
From the Google Cloud dashboard, go to APIs and Services on the left menu and then click on Enabled APIs and Services.
Click on + ENABLE APIS AND SERVICES
This should open up the API Library
Search for and enable the following APIs
Google Calendar API - required for reading calendars and performing CRUD operations on calendar events.
Google People API - required for reading user info such as name and email address.
Admin SDK API - required for reading room info for calendar events.
After you've enabled all the APIs, you must configure your Google App's OAuth consent screen. This is the page users will see when authenticating/allowing your app access to their Google account.
From the Google Cloud dashboard, hover over APIs & Services on the left menu. Then click on OAuth consent screen
For User Type, choose either Internal or External, depending on your use case.
Choose Internal if your app will only be used by users from your organization. Choose External if you want anyone with a Gmail account to be able to use your app. External apps require verification by Google before you can go to production.
Fill out all required info for the OAuth screen.
Add pyas.io
to your Authorized domains list
Add your developer contact email
Click on SAVE AND CONTINUE
Next, click ADD OR REMOVE SCOPES
Copy the scopes below and paste them into the Manually add scopes textarea.
Scopes to use:
Click ADD TO TABLE and then click UPDATE
Click SAVE AND CONTINUE
If you selected External for the User Type, the next step will be to add test users. Click the +ADD USERS button on the Test users screen.
Enter up to 100 email addresses for your test users and then click ADD.
Click SAVE AND CONTINUE
Review the summary and then click BACK TO DASHBOARD
When you're ready to go to production with your Google App, click the PUBLISH APP button.
The next thing you need to do is create OAuth credentials for your app. You will need to provide these credentials to Pyas later so we authenticate your users and access their calendars through our API.
From the Google Cloud dashboard, under APIs & Services, click on Credentials.
Click on CREATE CREDENTIALS and then select OAuth client ID
For Application Type, select Web Application
Give your application a name
Add authorized redirect URIs.
Be sure to add https://www.app.pyas.io/org/apps/oauth/google/callback
as an authorized redirect URI
Also add https://api.pyas.io/oauth/google/callback
as an authorized redirect URI
Add your own redirect URI that you plan on using for your app
Click CRERATE
There should now be a popup with your OAuth credentials. Save them so you can add them to your Pyas account later.
Login to your Pyas account
Select the Pyas App you will be updating
Go to the Pyas App's settings tab
Click on Authentication
Under Pyas Authentication, toggle the Enable Pyas Auth for Google Accounts switch off. Then, click the Save Pyas Auth Settings button.
Scroll down to the Native Google Authentication section.
Fill in the Google Oauth Client ID, Google Oauth Client Secret, and Google Oauth Callback URL. Note: the Google Oauth Callback URL should be your authorized redirect url that you added back in the Create Credentials section of this guide.
Once you've added the Google Oauth info, click the Save Google Settings button.
That's it! You should now be able to use your Google App with Pyas to add Google Calendar integrations into your app.