Skip to content

qrafttech/google-meet-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Meet Creator

Programmatically create and manage Google Meet meetings using the Google Meet API with service account authentication and domain-wide delegation.

Prerequisites

  • A Google Workspace account with admin access
  • Node.js 18+ and pnpm
  • A service account with domain-wide delegation enabled

Setup

1. Create a Service Account

  1. Go to Google Cloud Console
  2. Create a new project or select an existing one
  3. Enable the Google Meet API
  4. Create a service account:
    • Go to IAM & AdminService Accounts
    • Click Create Service Account
    • Download the JSON key file and save it as service-account.json in the project root

2. Enable Domain-Wide Delegation

  1. In the service account details, click Show Advanced Settings
  2. Copy the Client ID
  3. Go to your Google Workspace Admin Console
  4. Navigate to SecurityAPI ControlsDomain-wide Delegation
  5. Click Add new and paste the Client ID
  6. Add these OAuth scopes:
    https://www.googleapis.com/auth/meetings.space.created
    https://www.googleapis.com/auth/meetings.space.readonly
    

3. Configure the Project

  1. Install dependencies:

    pnpm install
  2. Create a .env file in the project root:

    cp .env.example .env
  3. Edit .env and set the IMPERSONATED_USER variable with a real user email from your domain:

    This user must exist in your Google Workspace domain and will be the owner of the created meetings.

Usage

Create a Google Meet

npm run create

This creates a new Google Meet and stores the meeting ID in .space file.

Get Meeting Details

npm run get

This reads the meeting ID from .space and fetches the meeting details.

About

Programmatically create a Google Meet space

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published