Thank you that helps. I'm now getting that result and looping through the JSON in PHP.
However I am having difficulty with the timestamps returned. I thought they were Unix but PHP's date conversion is not making sense of them. What format are the timestamps in, what conversion is necessary to make them normal date time?
And, how do you determine if a call / meeting has been completed rather than just planned but not done?
And, how do you convert owner id to sales rep name?
Thank you, thats a great help. So is there no way whatsoever of finding if the call or meeting was completed? That seems quite weird as the purpose is to report on sales rep productivity. Scheduling but not completing lots of meetings is not productive... but this seems to be difficult to detect! Is there not even another endpoint I could call on an individual activity to determine if it was done or missed?