Skip to content

Implemented google calendar integration using django rest api. OAuth2.0 authentication mechanism is used to get users calendar access.

Notifications You must be signed in to change notification settings

Karan0127/google_calendar_integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Calendar Integration - Django Rest Framework

I have implemented google calendar integration using django rest api. OAuth2.0 mechanism is used to get users calendar access. Below are details of API endpoints and corresponding views that are implemented -

/rest/v1/calendar/init/ -> GoogleCalendarInitView()

This view starts step 1 of the OAuth which will prompt user for his/her credentials.

/rest/v1/calendar/redirect/ -> GoogleCalendarRedirectView()

This view will do two things

  1. Handle redirect request sent by google with code for token
  2. Using the access_token, get list of events in users calendar

To run this project on a local machine:

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

Note: This application must have authorization credentials that identify the application to Google's OAuth 2.0 server to access Google APIs

References

Resource
Google Identity: Using OAuth 2.0 for Web Server Applications
Google Calendar API

About

Implemented google calendar integration using django rest api. OAuth2.0 authentication mechanism is used to get users calendar access.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages