by Farhan Karmali.
Am stuck here too
I am using wsfunction=core_calendar_get_calendar_events&events[courseids][1]=2&moodlewsrestformat=json
But I still get empty events, how do I get the site events?
edit: for anyone looking for solution make sure options[timeend]=1459728000 is set to a date in the future