Skip to content

Commit

Permalink
Merge pull request #100 from josseph/master
Browse files Browse the repository at this point in the history
Update weibo.py
  • Loading branch information
omab committed Nov 21, 2013
2 parents ada4bda + 4a48e12 commit 51df654
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion social/backends/weibo.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class WeiboOAuth2(BaseOAuth2):
AUTHORIZATION_URL = 'https://api.weibo.com/oauth2/authorize'
REQUEST_TOKEN_URL = 'https://api.weibo.com/oauth2/request_token'
ACCESS_TOKEN_URL = 'https://api.weibo.com/oauth2/access_token'
ACCESS_TOKEN_METHOD = 'POST'
REDIRECT_STATE = False
EXTRA_DATA = [
('id', 'id'),
Expand All @@ -40,4 +41,4 @@ def get_user_details(self, response):
def user_data(self, access_token, *args, **kwargs):
return self.get_json('https://api.weibo.com/2/users/show.json',
params={'access_token': access_token,
'uid': args[0]['uid']})
'uid': kwargs['response']['uid']})

0 comments on commit 51df654

Please sign in to comment.