Started implementing PIN for OAuth... entry doesn't show up in popup
This commit is contained in:
parent
4443d9d12c
commit
716e20a9b2
3 changed files with 32 additions and 10 deletions
|
@ -181,8 +181,11 @@ class OAuthApi(Api):
|
|||
signin_url = self.getAuthorizationURL(token, url)
|
||||
return signin_url
|
||||
|
||||
def getAccessToken(self, url=ACCESS_TOKEN_URL):
|
||||
token = self._FetchUrl(url, no_cache=True)
|
||||
def getAccessToken(self, pin=None, url=ACCESS_TOKEN_URL):
|
||||
params = None
|
||||
if pin:
|
||||
params = {'oauth_verifier': pin}
|
||||
token = self._FetchUrl(url, parameters=params, no_cache=True)
|
||||
return oauth.OAuthToken.from_string(token)
|
||||
|
||||
def getRequestToken(self, url=REQUEST_TOKEN_URL):
|
||||
|
|
Reference in a new issue