Mercurial > universal-identity-relyer
changeset 10:1686a3266557
minor refactoring
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Sat, 12 Jun 2010 20:10:54 -0700 |
parents | 42fe50c20cc8 |
children | 727b82d4b596 |
files | twitter_client.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/twitter_client.py Sat Jun 12 20:08:05 2010 -0700 +++ b/twitter_client.py Sat Jun 12 20:10:54 2010 -0700 @@ -4,9 +4,10 @@ from wsgiref.util import application_uri class TwitterOauthClientApp(object): - request_token_url = 'https://api.twitter.com/oauth/request_token' - access_token_url = 'https://api.twitter.com/oauth/access_token' - authorize_url = 'https://api.twitter.com/oauth/authorize' + base_url = 'https://api.twitter.com/oauth/' + request_token_url = base_url + 'request_token' + access_token_url = base_url + 'access_token' + authorize_url = base_url + 'authorize' def __init__(self, consumer, oauth, request_tokens, onsuccess): self.oauth = oauth