django-google-credentials

軟件截圖:
django-google-credentials
軟件詳細信息:
版本: 0.0.2
上傳日期: 20 Feb 15
許可: 免費
人氣: 0

Rating: nan/5 (Total Votes: 0)

Django的谷歌,憑據就是一個Django應用程序,存儲在Django ORM谷歌的OAuth憑據,方便API業務接入。
安裝:
1.安裝或添加Django的谷歌-憑據Python路徑。
2.添加google_credentials到您的INSTALLED_APPS設置。
3.添加google_credentials URL包括到項目的urls.py文件:
  URL(R'^谷歌憑據/',包括(“google_credentials.urls')),
4.創建的谷歌API控制台項目,指定重定向URL作為http://your.domain.com/google-credentials/callback(或者無論你設置你的urls.py如上所述)。
5.添加下面的設置來填充值從谷歌在上一步,即檢索項目的settings.py文件:
  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.運行使用syncdb來生成所需的模型。
用法
在你開始使用服務,你必須與你的谷歌賬戶授權。要做到這一點打開http://your.domain.com/google-credentials/callback在瀏覽器中。
一旦授權就可以retrive服務作進一步查詢,像這樣:
從google_credentials進口utils的
服務= utils.get_service()
要清除以前生成的憑證開http://your.domain.com/google-credentials/purge在您的瀏覽器。

要求

  • 在Python中
  • 在Django的

顯影劑的其他軟件 Praekelt Foundation

jmbo-music
jmbo-music

14 Apr 15

django-userprofile
django-userprofile

14 Apr 15

django-preferences
django-preferences

14 Apr 15

jmbo-chart
jmbo-chart

14 Apr 15

意見 django-google-credentials

評論沒有發現
添加評論
打開圖片!