https://github.com/showrin/google-calendar-event-automation
https://github.com/showrin/google-calendar-event-automation
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/showrin/google-calendar-event-automation
- Owner: Showrin
- Created: 2025-05-17T18:15:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-17T18:38:41.000Z (about 1 year ago)
- Last Synced: 2025-05-30T01:39:20.292Z (about 1 year ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Google Calendar Event Creation using NodeJs
## Description
This project automates the creation of Google Calendar events using NodeJS. It provides a simple way to programmatically manage calendar events through Google's Calendar API.
## Prerequisites
- Node.js installed
- Google Cloud Console account
- Google Calendar API enabled
- OAuth 2.0 credentials configured
## Environment Variables
Required environment variables:
- `GOOGLE_CLIENT_ID`: OAuth 2.0 Client ID
- `GOOGLE_CLIENT_SECRET`: OAuth 2.0 Client Secret
## Setup
1. Create `.env` file. And copy content from `.env.example`. Provide necessary values.
2. Run `node ./api/index.js`.
> If you are using vercel, run `vercel dev`.
## API Endpoints
### Create Calendar Event
`POST /api/meeting`
**Headers:**
```
Authorization: Bearer
```
**Body:**
```json
{
"summary": "Event title",
"description": "Event description",
"startDateTime": "2023-01-01T10:00:00",
"endDateTime": "2023-01-01T11:00:00",
"guestEmails": []
}
```
### Update Calendar Event
`PATCH /api/meeting/:eventId`
**Parameters:**
- `eventId`: ID of the event to update
**Headers:**
```
Authorization: Bearer
```
**Body:**
```json
{
"summary": "Updated title",
"description": "Updated description",
"startDateTime": "2023-01-01T10:00:00",
"endDateTime": "2023-01-01T11:00:00",
"guestEmails": []
}
```