(self)
configure Msg91 client

        we will provide to ways to configure clients :
         - One, you can configure msg91 keys from environment variables if not,
         - Then Second, you can send keys as function arguments too,
         - Priority wil be given to function arguments

        :return: msg91 client instance
configure Msg91 client
configure Msg91 client
def _validate_configure_msg91(self):
        """configure Msg91 client

        we will provide to ways to configure clients :
         - One, you can configure msg91 keys from environment variables if not,
         - Then Second, you can send keys as function arguments too,
         - Priority wil be given to function arguments

        :return: msg91 client instance
        """
        if self.auth_key is None:
            self.auth_id = getattr(settings, 'MSG91_AUTHKEY', None)

        if self.auth_key is None:
            raise RuntimeWarning(
                'to send sms via {0} you need to configure MSG91_AUTHKEY in \n'
                'environment variables or send auth_key as function arguments.'.format(self.name)
            )
def _validate_configure_msg91 ( self ) : if self . auth_key is None : self . auth_id = getattr ( settings , 'MSG91_AUTHKEY' , None ) if self . auth_key is None : raise RuntimeWarning ( 'to send sms via {0} you need to configure MSG91_AUTHKEY in \n' 'environment variables or send auth_key as function arguments.' . format ( self . name ) )