示例#1
0
def send_batch(config, messages):
    """Sends multiple sms in a batch"""
    xml = serialize(config, messages)
    headers = {"Content-Type": "text/xml", "Content-Length": len(xml)}
    return _post_request(config, xml, headers)
def test_message_serialize(config, single_message):
    """Test message serialization"""
    xml = serialize(config, single_message)
    data = deserialize(xml)
示例#3
0
def test_message_serialize(config, single_message):
    """Test message serialization"""
    xml = serialize(config, single_message)
    data = deserialize(xml)
示例#4
0
def send_batch(config, messages):
    """Sends multiple sms in a batch"""
    xml = serialize(config, messages)
    headers = {"Content-Type": "text/xml", "Content-Length": str(len(xml))}
    return _post_request(config, xml, headers)