smsframework/providers/forward/provider.py
def send(self, message):
        """ Send a message by forwarding it to the server
        :param message: Message
        :type message: smsframework.data.OutgoingMessage
        :rtype: smsframework.data.OutgoingMessage
        :raise Exception: any exception reported by the other side
        :raise urllib2.URLError: Connection error
        """
        res = jsonex_request(self.server_url + '/im'.lstrip('/'), {'message': message})
        msg = res['message']  # OutgoingMessage object

        # Replace properties in the original object (so it's the same object, like with other providers)
        for k, v in msg.__dict__.items():
            setattr(message, k, v)
        return message
def send(self, message):
        """ Send a message by forwarding it to the server
        :param message: Message
        :type message: smsframework.data.OutgoingMessage
        :rtype: smsframework.data.OutgoingMessage
        :raise Exception: any exception reported by the other side
        :raise urllib2.URLError: Connection error
        """
        res = jsonex_request(self.server_url + '/im'.lstrip('/'), {'message': message})
        msg = res['message']  # OutgoingMessage object

        # Replace properties in the original object (so it's the same object, like with other providers)
        for k, v in msg.__dict__.items():
            setattr(message, k, v)
        return message
def send ( self , message ) : res = jsonex_request ( self . server_url + '/im' . lstrip ( '/' ) , { 'message' : message } ) msg = res [ 'message' ] # OutgoingMessage object # Replace properties in the original object (so it's the same object, like with other providers) for k , v in msg . __dict__ . items ( ) : setattr ( message , k , v ) return message
Send a message by forwarding it to the server
        :param message: Message
        :type message: smsframework.data.OutgoingMessage
        :rtype: smsframework.data.OutgoingMessage
        :raise Exception: any exception reported by the other side
        :raise urllib2.URLError: Connection error
Send a message by forwarding it to the server : param message : Message : type message : smsframework . data . OutgoingMessage : rtype : smsframework . data . OutgoingMessage : raise Exception : any exception reported by the other side : raise urllib2 . URLError : Connection error