I'm trying to convert our 1.0 code over to 2.0 and the JSON data structures seemed to have changed and when I went to the samples I found that the number of 2.0 samples are very slim and not very helpful. They are basically just an incomplete codification of some of the curl requests in the API documentation and I've not found any PHP one that really shows any data handling.
The initial API samples seemed to have a little more meat to them them where the 2.0 ones are barely squeaking by and require some additional parameters to even make them work (I had to disable some SSL verification through curl options to make the PHP ones work.)
It would be nice if many of the samples were expanded to do more than just mimic the get commands and went a step farther and stepped through some of the returned arrays demonstrating how to address the elements.
I'm presently working on one to list the members of a specified group recreating an API 1.0 function we have in a production application (adds/removes users to/from a group) and code that previously worked with the returned data does not even after changing the 'agents' to 'agent_ids'.
I have a number more to do and find the API documentation and samples to be rather frustrating considering this is a forced migration as the 1.0 version is apparently going to be taken out of production.