Posts

Showing posts from December, 2015

retrive google contacts using google contactapi with django

Firstly we create  a project in google developer Console using following links: https://console.developers.google.com/home/dashboard?project=brickit-1134&pli=1 After create project click on side panel in google developer console and select "API MANAGER" and select google contact api and enable the api .After enable the api click on side pannel on "credentials" and click on add credentials. There are three options: 1. API key 2. OAuth 2.0 Client id 3. service account click on second options and go to consent screen and fill up the product name and save it after save click on web application and fill up the name and authorized redirect urls which is necessary "authorized redirect ur"l ==> your django application url where we redirect. After save it that generate a "client id" and "client secret" please save it. Now goes to your django application. install gdata in your virtualenv and paste code in your views: