API - Basic API calls

Instead of passing $callback_func you better pass $returnedIDName. If it is passed then the returning object will contain only one pair with name = $returnedIDName and value equal to freshly created ID.