2012-09-01 42 views

回答

1

我不知道social_auth,但django-allauth店(和更新)在每次登錄令牌,比在:

https://github.com/pennersr/django-allauth/blob/master/allauth/socialaccount/models.py#L82

然後,它僅僅是餵養的一個問題是令牌例如Tweepy(http://tweepy.github.com)以代表用戶發佈推文。

+0

假設我正在使用allauth,我該如何喂tweepy?任何例子? – ibrahimyilmaz

+1

類似這樣的: import tweepy; auth = tweepy.OAuthHandler(consumer_token,consumer_secret); auth.set_access_token(socialtoken.token,socialtoken.token_secret); api = tweepy.API(auth); api.update_status('Hello world') – pennersr

+0

我怎樣才能從你的提供者獲得社交令牌?你能舉個例子嗎? – ibrahimyilmaz

相關問題