mandrill-inbound-python
mandrill-inbound-python copied to clipboard
Question on inbound messages
Mandrill sends an array of objects, I'm wondering if there are cases where you get multiple messages per event?
It looks like the code assumes the first item in the returned array: https://github.com/jpadilla/mandrill-inbound-python/blob/master/mandrill_inbound/init.py#L18
Would it be accurate to change the example from:
json_data = json.loads(open('./tests/fixtures/valid_http_post.json').read())
inbound = MandrillInbound(source=json_data)
to
json_data = json.loads(open('./tests/fixtures/valid_http_post.json').read())
inbound = MandrillInbound(source=json_data[0])
?
Thanks, great helper library!