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)
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)