How To Generate The YouTube Credentials - WorkDo.io

How To Generate The YouTube Credentials

Step 1: Create a Google Cloud Project

  1. Visit: https://console.cloud.google.com/
  2. Click the project dropdown (top left) → “New Project”
  3. Name your project (e.g., YouTube Integration) and click “Create”

Step 2: Enable the YouTube Data API v3

  1. After your project is created, go to: https://console.cloud.google.com/apis/library/youtube.googleapis.com
  2. Click “Enable”
  3. You also need to enable the YouTube Data API V3 version and the YouTube Analytics API.

Step 3: Configure OAuth Consent Screen

  1. Go to: OAuth Consent Screen
  2. Choose “External” if your app will be used by others outside your organization.
  3. Fill in:
    • App name
    • User support email
    • Developer contact info
  4. Save and continue (you can skip scopes for now or add later)
  5. Under “Test users”, add the Gmail account(s) you’ll use to test.

Step 4: Create OAuth 2.0 Client Credentials

  1. Go to: Credentials Page
  2. Click “Create Credentials” → OAuth client ID
  3. Choose “Web application”
  4. Set a name (e.g., Laravel YouTube Integration)
  5. Under Authorized redirect URIs, add your redirect URL, e.g.:
    • For local development:
      http://localhost:8000/google/callback
    • For production:
      https://yourdomain.com/google/callback
  6. Click Create

Step 5: Copy Your Credentials

  1. After creation, you’ll get:
    • Client ID
    • Client Secret
  2. Save these in your Laravel .env file or settings table:
    • GOOGLE_CLIENT_ID=your_client_id
    • GOOGLE_CLIENT_SECRET=your_client_secret
    • GOOGLE_REDIRECT_URI=http://localhost:8000/google/callback
Contact Us

Reach Out to Us

Have questions or need assistance? We're here to help! Reach out to our team for support, inquiries, or feedback. Your needs are important to us, and we’re ready to assist you!

money-back-img
money-back-img

Need more help?

If you’re still uncertain or need professional guidance, don’t hesitate to contact us. You can contact us via email or submit a ticket with a description of your issue. Our team of experts is always available to help you with any questions. Rest assured that we’ll respond to your inquiry promptly.

Love what you see?

Do you like the quality of our products, themes, and applications, or perhaps the design of our website caught your eye? You can have similarly outstanding designs for your website or apps. Contact us, and we’ll bring your ideas to life.

WorkDo Custom Services