-
I could only get it working by using the API key. If you try to call
api.php
using the curl example from the Dev API page, it will fail due to a PHP Fatal error in theaddData
function withinmodules/base/general/classes/BxBaseModGeneralFormsEntryHelper.php
. The issue arises because the method expects an array as the second parameter, but an object is being passed instead. To resolve this, I had to check the type of the parameter and cast it to an array if necessary. With this fix, I was able to successfully create a post using curl. I hope this helps.