Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.14 KB

File metadata and controls

53 lines (36 loc) · 1.14 KB

Google Calendar API Automation

This project demonstrates how to integrate the Google Calendar API into your application using Python. It covers setting up the API credentials, authenticating users, and creating a calendar event in Indian Standard Time (IST).

Setup

Clone the Repository

git clone https://github.com/your-username/Google_Calendar_API.git

Navigate to the Project Directory

cd Google_Calendar_API

Install Required Libraries

pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib

Set Environment Variable

Set the environment variable GOOGLE_APPLICATION_CREDENTIALS to the path of your service account key:

set GOOGLE_APPLICATION_CREDENTIALS=path\to\your\service-account-file.json

Usage

Create a Calendar Event

Run the Python script create.py to create an event:

python create.py

Retrieving Calendar Events

Run the script to retrieve events:

python retrieve.py

Managing Calendar Events

Run the script to manage events:

python manage.py