#NEWLINE# def __call__( self , default = None , **params ) : #NEWLINE# #INDENT# "\n      Make the specified call to the Twitter API.\n\n      Raises requests.exceptions.RequestException if a request was failed. Usually you should retry.\n\n      Raises a twitterwrapper.TwitterException if Twitter doesn't want to talk to us.\n    " #NEWLINE# spec = self . _spec #NEWLINE# if ( spec . url is None ) : #NEWLINE# #INDENT# raise TypeError ( 'API method is not callable' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( default and spec . default_param ) : #NEWLINE# #INDENT# params [ spec . default_param ] = default #NEWLINE# #UNINDENT# if ( self . _container and spec . container_id ) : #NEWLINE# #INDENT# params [ spec . container_id ] = self . _container . id #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# if spec . streaming : #NEWLINE# #INDENT# return self . _stream ( self . _prepare_url ( params ) , params , spec . post ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if spec . post : #NEWLINE# #INDENT# result = self . _connection . post ( self . _prepare_url ( params ) , data = params ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# result = self . _connection . get ( self . _prepare_url ( params ) , params = params ) #NEWLINE# #UNINDENT# #UNINDENT# TwitterException . raise_for_response ( result ) #NEWLINE# return self . _process_result ( result ) #NEWLINE# #UNINDENT# except OpenSSL . SSL . SysCallError as e : #NEWLINE# #INDENT# raise requests . exceptions . SSLError ( e )