mandrill-inbound-python icon indicating copy to clipboard operation
mandrill-inbound-python copied to clipboard

Question on inbound messages

Open fideloper opened this issue 9 years ago • 6 comments

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!

fideloper avatar Dec 23 '14 03:12 fideloper