In this assignment you have to implement google calendar integration using django 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
/rest/v1/calendar/init/ -> GoogleCalendarInitView() This view should start 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. You need to implement mechanism to get access_token from given code 2. Once got the access_token get list of events in users calendar
You need to write the code in Django. You are not supposed to use any existing third-party library other then google’s provided standard libraries Please create a GitHub repo and upload code there. Looking forward to your submission. Have a great day
Thank You
Report Bug
·
Request Feature
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
This is an example of how to list things you need to use the software and how to install them.
-
Clone the repo
git clone https://github.com/amjadcp/Convin-Assignment.git
-
Enter to the repo
cd Convin-Assignment
-
Create a virtual environment
python3 -m venv venv
-
Activate virtual environment
source venv/bin/activate
-
Install whole dependencies
pip install -r requirements.txt
-
Run server and open in 127.0.0.1:8080/rest/v1/calendar/init/
python manage.py runserver
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Project Link: https://github.com/amjadcp/bookingLine-grpA-miniProject