Skip to content

Step 1: Create Google Cloud Project

  1. Go to Google Cloud Console
  2. Create new project (e.g., "Discord YouTube Notifications")

Step 2: Enable YouTube API

  1. Navigate to "APIs & Services" → "Library"
  2. Search for "YouTube Data API v3" and enable it
  1. Go to "APIs & Services" → "OAuth consent screen"
  2. Configure:
  3. User Type: External
  4. Scopes: Add .../auth/youtube.readonly
  5. Test Users: Add your email

Step 4: Create OAuth Credentials

  1. Go to "Credentials" → "Create Credentials" → "OAuth client ID"
  2. Configure:
  3. Application Type: Web Application
  4. 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