Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Internet > HTTP (WWW)

    django-google-credentials 0.0.2

    Download button

    No screenshots available
    Downloads: 74  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Praekelt Foundation | More programs
    BSD License / FREE
    August 22nd, 2012, 17:12 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-google-credentials description

    Django app storing Google API OAuth credentials

    django-google-credentials is a Django app that stores Google OAuth credentials in Django ORM for easy API service access.

    Installation:

    1. Install or add django-google-credentials to your Python path.

    2. Add google_credentials to your INSTALLED_APPS setting.

    3. Add google_credentials URL include to your project's urls.py file:

     url(r'^google-credentials/', include('google_credentials.urls')),

    4. Create your project on the Google API Console, specifying the redirect URL as http://your.domain.com/google-credentials/callback (or however you setup your urls.py as described above).

    5. Add the following settings to your project's settings.py file populated with values as retrieved from Google in the previous step, i.e.:

     GA_CLIENT_ID = '32749234234.apps.googleusercontent.com'
     GA_CLIENT_SECRET = 'DKSFY87sd6fHJGdsf6'
     GA_SCOPE = 'https://www.googleapis.com/auth/analytics.readonly'
     GA_REDIRECT_URI = 'http://your.domain.com/google-credentials/callback'


    6. Run syncdb to generate required models.

    Usage

    Before you can start using a service you have to authorize it with your Google account. To do this open http://your.domain.com/google-credentials/callback in your browser.

    Once authorized you can retrive a service for further querying like so:

    from google_credentials import utils

    service = utils.get_service()


    To purge previously generated credentials open http://your.domain.com/google-credentials/purge in your browser.


    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    Google API | Django OAuth | Google OAuth | Django | Google | API

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM