Example #1
0
 def getPublicTimeline(self):
     try:
         statuses = self.api.GetPublicTimeline()
         lst = utils.getMessageList_from_statuses(statuses)
         return lst
     except URLError:
         raise TwitterError("No network")
Example #2
0
 def getMyUpdates(self):
     try:
         statuses = self.api.GetUserTimeline()
         lst = utils.getMessageList_from_statuses(statuses)
         return lst
     except URLError:
         raise TwitterError("No Network")
     except HTTPError:
         raise AuthError("Authentication failed")