#NEWLINE# @ base . apimethod #NEWLINE# def deducer( self , email = None , username = None , casing = None ) : #NEWLINE# #INDENT# '\n        Take a username or email address provided as a string and\n        attempts to deduce a structured name.\n\n        :var email: It allows you to pass an email address.\n        :vartype email: str\n\n        :var username: It allows you to pass a username.\n        :vartype username: str\n\n        :var casing: One of: uppercase, lowercase or titlecase.\n        :vartype casing: str\n        ' #NEWLINE# if ( ( ( email is None ) and ( username is None ) ) or ( ( email is not None ) and ( username is not None ) ) ) : #NEWLINE# #INDENT# raise TypeError ( 'deducer() must be passed just one of email or username.' ) #NEWLINE# #UNINDENT# params = base . get_params ( None , locals ( ) ) #NEWLINE# url = '{0}/{1}' . format ( self . get_url ( ) , 'deducer' ) #NEWLINE# request = http . Request ( 'GET' , url , params ) #NEWLINE# return ( request , parsers . parse_json )