๐ Google Drive API Integration for Stackposts
This guide explains how to connect your Google Drive to Stackposts, allowing users to import or upload files directly from their Google Drive account.
๐งฉ 1. Create a Google Cloud Project
-
Enter a Project name, for example:
Stackposts Drive Integration. -
Click Create.
โ๏ธ 2. Enable Google Drive API
-
After creating the project, open this link:
https://console.developers.google.com/apis/library/drive.googleapis.com -
Click Enable to activate the Google Drive API for your project.
๐งพ 3. Configure the OAuth Consent Screen
-
Go to APIs & Services โ OAuth consent screen.
-
Select External, then click Create.
-
Fill in the following details:
-
App name:
Stackposts Google Drive Integration -
User support email: your Google account email
-
Developer contact information: your email address
-
-
Click Save and Continue to move to the next step.
๐ 4. Add Required Scopes
-
In the Scopes step, click Add or Remove Scopes.
-
Add this scope:
-
Click Save and Continue.
๐ฅ 5. Add Test Users
-
Go to the Test users section.
-
Click Add users.
-
Enter your Google account email.
-
Click Save and Continue.
๐ 6. Create OAuth Credentials
-
Go to APIs & Services โ Credentials.
-
Click + Create Credentials โ OAuth client ID.
-
Choose:
-
Application type: Web application
-
Name:
Stackposts Drive Integration
-
-
Under Authorized redirect URIs, add:
(Replace
yourdomain.comwith your actual domain.) -
Click Create.
You will get two values:
-
Client ID
-
Client Secret
๐งฐ 7. Get Your API Key
-
Go to APIs & Services โ Credentials again.
-
Click + Create Credentials โ API key.
-
Copy the generated API Key.
โ๏ธ 8. Enter the Following Fields in Stackposts
In your Stackposts Admin Panel, go to:
Settings โ Files โ Google Drive
Then fill in the following fields:
-
API Key โ (Paste the key you copied from Google Cloud)
-
Client ID โ (From your OAuth client credentials)
-
Client Secret โ (From your OAuth client credentials)
After entering, click Save Changes and ensure Status = Enable.
๐งพ 9. OAuth Verification (Optional but Recommended)
When submitting your app for Google review, fill in the following:
Scopes Justification:
Additional Information:
โ 10. Completed
Once everything is configured, users can now connect their Google Drive accounts and access their files directly from Stackposts.