@sfortus, to obtain your Google OAuth 2.0 client ID and client secret for accessing Google APIs like Google Docs, follow these steps:
-
Visit the Google API Console: Navigate to the Google API Console.
-
Create a New Project:
- Click on the project dropdown at the top of the page and select “New Project.”
- Enter a project name and click “Create.”
-
Enable the Google Docs API:
- In the left sidebar, click on “APIs & Services” > “Library.”
- Search for “Google Docs API” and click on it.
- Click “Enable” to activate the API for your project.
-
Configure the OAuth Consent Screen:
- In the left sidebar, click on “APIs & Services” > “OAuth consent screen.”
- Select the “External” user type and click “Create.”
- Fill in the required fields, such as “App name,” “User support email,” and “Developer contact information.”
- Click “Save and Continue.”
-
Create OAuth 2.0 Credentials:
- In the left sidebar, click on “APIs & Services” > “Credentials.”
- Click “Create Credentials” and select “OAuth 2.0 Client IDs.”
- For “Application type,” choose “Web application.”
- Under “Authorized redirect URIs,” add the URI where your application will handle responses from Google’s OAuth 2.0 server (e.g.,
https://yourdomain.com/oauth2callback). - Click “Create.”
-
Obtain Client ID and Client Secret:
- After creation, a dialog will display your new client ID and client secret.
- Click “OK” to close the dialog.
- On the “Credentials” page, you can view and manage your credentials.
Let me know if it helped ![]()