#NEWLINE# def send_message( self , message = '' , **kwargs ) : #NEWLINE# #INDENT# 'Send a message to the Free Mobile user cell.' #NEWLINE# resp = self . free_client . send_sms ( message ) #NEWLINE# if ( resp . status_code == 400 ) : #NEWLINE# #INDENT# _LOGGER . error ( 'At least one parameter is missing' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( resp . status_code == 402 ) : #NEWLINE# #INDENT# _LOGGER . error ( 'Too much SMS send in a few time' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( resp . status_code == 403 ) : #NEWLINE# #INDENT# _LOGGER . error ( 'Wrong Username/Password' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( resp . status_code == 500 ) : #NEWLINE# #INDENT# _LOGGER . error ( 'Server error, try later' )