I'm requesting events statistics and I'm not sure I completely understand the response. First of all, it doesn't really seem like the period parameter works, at least I'm getting a lot more data than I would expect when for example querying "7days".
Also, the response seems a bit strange. It's devided into the following structure:
But then at the "Day" level there also seems to be accumulated stats for the specific event id. This seems to be a problem if you're using numbers (which I am). I end of with a json that looks like this:
And so on, but then my event ids (for the accumulated results appear)
This issue here is obviously what happens if my event id is for example 3.