#NEWLINE# def get_response( self , object_id = None , params = None ) : #NEWLINE# #INDENT# if ( self . method is None ) : #NEWLINE# #INDENT# raise NotImplementedError ( 'Must define method class member.' ) #NEWLINE# #UNINDENT# params = ( params or self . params ) #NEWLINE# if ( self . method != 'get' ) : #NEWLINE# #INDENT# params = json . dumps ( params ) #NEWLINE# #UNINDENT# request = getattr ( self . client , self . method ) #NEWLINE# url = self . get_url ( object_id ) #NEWLINE# return request ( url , params , content_type = 'application/json' )