Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

As well as returning the access_token, return who it is associated to #15

Merged
merged 1 commit into from
Feb 24, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion instagram/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def exchange_for_access_token(self, code=None, username=None, password=None, sco
parsed_content = simplejson.loads(content)
if int(response['status']) != 200:
raise OAuth2AuthExchangeError(parsed_content.get("message", ""))
return parsed_content['access_token']
return parsed_content['access_token'], parsed_content['user']


class OAuth2Request(object):
Expand Down