Started implementing PIN for OAuth... entry doesn't show up in popup

This commit is contained in:
Anna 2010-05-20 18:03:35 -04:00
parent 4443d9d12c
commit 716e20a9b2
3 changed files with 32 additions and 10 deletions

View file

@ -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):