# HG changeset patch # User Atul Varma # Date 1276398654 25200 # Node ID 1686a3266557ef28157e20e36ffa78b23bd379e4 # Parent 42fe50c20cc8ad0988de1be4f2e5fdb4a6e6c5fe minor refactoring diff -r 42fe50c20cc8 -r 1686a3266557 twitter_client.py --- 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