#NEWLINE# def get( self , service , **params ) : #NEWLINE# #INDENT# " This method uses the ``baseurl`` parameter and concats the\n        ``service`` parameter into it to create the request URL. Any\n        extra param passed to this method by the ``params`` parameter will\n        be redirected to the Requests request.\n\n        :param service: the service, i.e. 'ObterDeputados'\n        :param params: extra parameters to be used by Requests\n        :rtype: the Requests request response\n        " #NEWLINE# req = requests . get ( ( self . base_url + service ) , headers = self . odbrasil_headers , ** params ) #NEWLINE# req . raise_for_status ( ) #NEWLINE# if ( self . content_type not in req . headers [ 'content-type' ] ) : #NEWLINE# #INDENT# raise RuntimeError ( ( "The endpoint didn't returned a xml data, returned %s" % req . headers [ 'content-type' ] ) ) #NEWLINE# #UNINDENT# return req