Yes, this code only works with the Single style. I'll update the
documentation to reflect this. When you use the Batch style, the body of
the POST request is an array, not an object. So if you want to use that
style, you'd iterate through the array and process each event. Not a ton
more code, but outside the scope of the tutorial.