I'm having a bit of trouble getting Open API to work with EE in conjunction with the Channel Entries API. It seems to be a similar problem to this question:
So pulling data with GET is fine, but POSTing data returns 500 errors.
The trouble seems to stem from using square brackets or round brackets to access session data. Open API uses the following format:
Whereas EE in the channel entries API uses this format with the round brackets:
I went through and edited all references with round brackets in /libraries/api/Api_channel_entries to the square brackets and that fixed the issue with Open API. I was able to GET and POST just fine.
But it messed up everything else with publishing entries via the EE control panel or with Safecracker.
Does anyone have any insight into the difference between accessing data in these 2 ways and how it might be affecting things? I'm not sure whether its an EE problem or PHP issue.
I'm running a local install of EE 2.5.2 with PHP 5.3.15 and I've also tried a fresh install of 2.6.1 and had the same issue.