Step 1: Create Google Cloud Project
- Go to Google Cloud Console
- Create new project (e.g., "Discord YouTube Notifications")
Step 2: Enable YouTube API
- Navigate to "APIs & Services" → "Library"
- Search for "YouTube Data API v3" and enable it
Step 3: Configure OAuth Consent Screen
- Go to "APIs & Services" → "OAuth consent screen"
- Configure:
- User Type: External
- Scopes: Add
.../auth/youtube.readonly
- Test Users: Add your email
Step 4: Create OAuth Credentials
- Go to "Credentials" → "Create Credentials" → "OAuth client ID"
- Configure:
- Application Type: Web Application
- Authorized Redirect URIs:
http://localhost:5000/oauth/youtube/callback
(or use production URL)
Step 5: Get Credentials
- Client ID and Client Secret will be shown after creation
Step 6: Environment Variables Setup
Add these variables to your .env
file:
```env
Twitch
TWITCH_CLIENT_ID=your_twitch_client_id_here TWITCH_CLIENT_SECRET=your_twitch_client_secret_here
YouTube
YOUTUBE_CLIENT_ID=your_youtube_client_id_here YOUTUBE_CLIENT_SECRET=your_youtube_client_secret_here