Giter VIP home page Giter VIP logo

convin-assignment's Introduction


CONVIN ASSIGNMENT

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





Getting Started

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.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

To use

  1. Clone the repo

    git clone https://github.com/amjadcp/Convin-Assignment.git
  2. Enter to the repo

    cd Convin-Assignment
  3. Create a virtual environment

    python3 -m venv venv
  4. Activate virtual environment

    source venv/bin/activate
  5. Install whole dependencies

    pip install -r requirements.txt
  6. save client_secret.json in secret_folder

  7. Run server and open in 127.0.0.1:8080/rest/v1/calendar/init/

    python manage.py runserver

Contributing

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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Project Link

Project Link: https://github.com/amjadcp/bookingLine-grpA-miniProject

convin-assignment's People

Contributors

amjadcp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.