#NEWLINE# def post_email_account( self , **kwargs ) : #NEWLINE# #INDENT# req_args = [ 'email' , 'server' , 'username' , 'use_ssl' , 'port' , 'type' ] #NEWLINE# all_args = ( req_args + [ 'status_callback_url' ] ) #NEWLINE# email_account = super ( User , self ) . post ( uri = 'email_accounts' , params = kwargs , return_bool = False , all_args = all_args , required_args = req_args ) #NEWLINE# if ( bool ( email_account [ 'success' ] ) is False ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return EmailAccount ( self , email_account ) #NEWLINE# if check_for_account_credentials ( kwargs ) : #NEWLINE# #INDENT# all_args = ( [ 'migrate_account_id' , 'first_name' , 'last_name' ] + req_args ) #NEWLINE# params = sanitize_params ( kwargs , all_args , req_args ) #NEWLINE# return User ( self , self . _request_uri ( 'users' , method = 'POST' , params = params ) )