Skip to content

puneet2715/youth-india-e-school

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend Assignment

In this assignment you have to implement google calendar integration using rest API. You need to use the OAuth2 mechanism to get users calendar access. Below are detail of API endpoint and corresponding views which you need to implement –

  1. /rest/v1/calendar/init/ - GoogleCalendarInitView()
    This view should start step 1 of the OAuth. Which will prompt the user for his/her credentials.
  2. /rest/v1/calendar/redirect/ -> GoogleCalendarRedirectView()
    This view will do two things – i) Handle redirect requests sent by google with code for token. You need to implement a mechanism to get access_token from given code. ii) Once you get the access_token get a list of events in the user's calendar

Setup

# Install dependencies
npm install

# Run the server
npm start

Releases

No releases published

Packages

No packages published