Google Calendar Credentials Generate - WorkDo.io

Google Calendar Credentials Generate

How to generate Google Calendar ID and Google Calendar JSON for Calendar Step 1: Open […]

How to generate Google Calendar ID and Google Calendar JSON for Calendar

Step 1: Open Google Cloud Console

Step 2: Create or Select a Project

  • At the top menu, click the project dropdown.
  • Click “New Project” if you don’t have one.
  • Enter a Project name, then click Create.

Step 3: Enable Google Calendar API

  • In the left sidebar, go to APIs & Services > Library
  • Search for “Google Calendar API”
  • Click it, then press Enable

Step 4: Create Service Account Credentials

  • Go to APIs & Services > Credentials
  • Click + Create Credentials > Service account
  • Fill in:
    • Name (e.g., calendar-service)
    • Description (optional)
  • Click Create and Continue
  • (Optional) On the “Grant access” step, just click Done

Step 5: Download the JSON Key File

  • After creating the service account, you’ll see it listed.
  • Click the service account name
  • Go to the Keys tab
  • Click Add Key > Create new key
  • Choose JSON → Click Create
  • A .json file will download automatically. Keep it safe.
  • This JSON contains:
    • client_email (important!)
    • private_key
    • Other OAuth credentials.

Step 6: Create a New Google Calendar

  • Go to https://calendar.google.com
  • On the left, click the + icon next to “Other calendars”
  • Choose Create new calendar
  • Set:
    • Name (e.g., API Events)
    • Description (optional)
  • Click Create calendar

Step 7: Share Calendar Access with Service Account

  • Select your new calendar in the left sidebar
  • Click the Settings icon ⚙️ > Settings
  • Scroll to “Share with specific people or groups”
  • Click + Add people and groups
  • Paste the client_email from your JSON file (e.g., calendar-api@your-project.iam.gserviceaccount.com)
  • Set permission to: Make changes and manage sharing
  • Click Send
  • Now, your service account has write access to the calendar.

Step 8: Get the Calendar ID

  • Still in Calendar Settings
  • Scroll to the “Integrate calendar” section
  • Copy the Calendar ID — it looks like:
    • yourcalendar@gmail.com
    • or abc123@group.calendar.google.com
Take your business to the next level with great website!

Feel Free To Reach Out to Discuss Your Next Web Development Project.

WorkDo Contact Us







    WorkDo Custom Services