Fixed CustomApi so that _username is defined
This commit is contained in:
parent
1a98de805f
commit
f7696e2d67
3 changed files with 3 additions and 3 deletions
|
@ -36,9 +36,9 @@ diff -r 51ac454d5d89 twitter.py
|
|||
+ if not user and not self._username:
|
||||
+ raise TwitterError("User must be specified if API is not authenticated.")
|
||||
+ if user:
|
||||
+ url = 'http://twitter.com/%s/lists/%s/statuses.json' % (user,list_slug)
|
||||
+ url = 'http://api.twitter.com/1/%s/lists/%s/statuses.json' % (user,list_slug)
|
||||
+ else:
|
||||
+ url = 'http://twitter.com/%s/lists/%s/statuses.json' % (self._username,list_slug)
|
||||
+ url = 'http://api.twitter.com/1/%s/lists/%s/statuses.json' % (self._username,list_slug)
|
||||
+ parameters = {}
|
||||
+ if since_id:
|
||||
+ parameters['since_id']=since_id
|
||||
|
|
Reference in a new issue